{"answers":{"affected":"18 open source packages ship an affected version, including @angular/platform-server, @angular/ssr and @nguniversal/common.","exploited":"There is no known exploitation of CVE-2025-59052 in the wild and no public exploit code.","fix":"Upgrade @angular/platform-server to a fixed version for your release line: 18.2.14, 19.2.15, 20.3.0 or 21.0.0-next.3.","what":"CVE-2025-59052 is a high-severity vulnerability in angular, published on 10 Sep 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-59052 and fix it if it is affected.\n\nWhat it is: CVE-2025-59052 is a high-severity vulnerability in angular, published on 10 Sep 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2025-59052 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @angular/platform-server (npm): affected from 16.0.0-next.0; fixed in 18.2.14\n- @angular/platform-server (npm): affected from 16.0.0-next.0; fixed in 18.2.14\n- @angular/platform-server (npm): affected from 19.0.0-next.0; fixed in 19.2.15\n- @angular/platform-server (npm): affected from 19.0.0-next.0; fixed in 19.2.15\n- @angular/platform-server (npm): affected from 20.0.0-next.0; fixed in 20.3.0\n- @angular/platform-server (npm): affected from 20.0.0-next.0; fixed in 20.3.0\n- @angular/platform-server (npm): affected from 21.0.0-next.0; fixed in 21.0.0-next.3\n- @angular/platform-server (npm): affected from 21.0.0-next.0; fixed in 21.0.0-next.3\n- @angular/ssr (npm): affected from 17.0.0-next.0; fixed in 18.2.21\n- @angular/ssr (npm): affected from 17.0.0-next.0; fixed in 18.2.21\n- @angular/ssr (npm): affected from 19.0.0-next.0; fixed in 19.2.16\n- @angular/ssr (npm): affected from 19.0.0-next.0; fixed in 19.2.16\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-59052/ (Markdown: https://insights.sbomify.com/CVE-2025-59052/index.md)","id":"CVE-2025-59052","markdown":"https://insights.sbomify.com/CVE-2025-59052/index.md","name":"CVE-2025-59052","record":{"aliases":["GHSA-68x2-mx4q-78m7"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Angular SSR library","requires_auth":"none","summary":"Concurrent server-side rendering requests may share global state, allowing attackers to leak sensitive data from other users' responses.","user_interaction":"required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"description":"Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Angular uses a DI container (the \"platform injector\") to hold request-specific state during server-side rendering. For historical reasons, the container was stored as a JavaScript module-scoped global variable. When multiple requests are processed concurrently, they could inadvertently share or overwrite the global injector state. In practical terms, this can lead to one request responding with data meant for a completely different request, leaking data or tokens included on the rendered page or in response headers. As long as an attacker had network access to send any traffic that received a rendered response, they may have been able to send a large number of requests and then inspect the responses for information leaks. The APIs `bootstrapApplication`, `getPlatform`, and `destroyPlatform` were vulnerable and required SSR-only breaking changes.\nThe issue has been patched in all active release lines as well as in the v21 prerelease. Patched packages include `@angular/platform-server` 21.0.0-next.3, 20.3.0, 19.2.15, and 18.2.14 and `@angular/ssr` 21.0.0-next.3, 20.3.0, 19.2.16, and 18.2.21. Several workarounds are available. Disable SSR via Server Routes or builder options, remove any asynchronous behavior from custom `bootstrap` functions, remove uses of `getPlatform()` in application code, and/or ensure that the server build defines `ngJitMode` as false.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Angular SSR: Global Platform Injector Race Condition Leads to Cross-Request Data Leakage","id":"CVE-2025-59052","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"race_condition","year":"2025"},"n_packages":18,"n_references":3,"next":{"headline":"AIRI's character card/chat UI is vulnerable to XSS and can lead to RCE","id":"CVE-2025-59053"},"packages":[{"ecosystem":"npm","fixed":["18.2.14"],"introduced":["16.0.0-next.0"],"last_affected":[],"package":"@angular/platform-server","purl":null,"source":"GHSA-68x2-mx4q-78m7"},{"ecosystem":"npm","fixed":["18.2.14"],"introduced":["16.0.0-next.0"],"last_affected":[],"package":"@angular/platform-server","purl":"pkg:npm/%40angular/platform-server","source":"GHSA-68x2-mx4q-78m7"},{"ecosystem":"npm","fixed":["19.2.15"],"introduced":["19.0.0-next.0"],"last_affected":[],"package":"@angular/platform-server","purl":null,"source":"GHSA-68x2-mx4q-78m7"},{"ecosystem":"npm","fixed":["19.2.15"],"introduced":["19.0.0-next.0"],"last_affected":[],"package":"@angular/platform-server","purl":"pkg:npm/%40angular/platform-server","source":"GHSA-68x2-mx4q-78m7"},{"ecosystem":"npm","fixed":["20.3.0"],"introduced":["20.0.0-next.0"],"last_affected":[],"package":"@angular/platform-server","purl":null,"source":"GHSA-68x2-mx4q-78m7"},{"ecosystem":"npm","fixed":["20.3.0"],"introduced":["20.0.0-next.0"],"last_affected":[],"package":"@angular/platform-server","purl":"pkg:npm/%40angular/platform-server","source":"GHSA-68x2-mx4q-78m7"},{"ecosystem":"npm","fixed":["21.0.0-next.3"],"introduced":["21.0.0-next.0"],"last_affected":[],"package":"@angular/platform-server","purl":null,"source":"GHSA-68x2-mx4q-78m7"},{"ecosystem":"npm","fixed":["21.0.0-next.3"],"introduced":["21.0.0-next.0"],"last_affected":[],"package":"@angular/platform-server","purl":"pkg:npm/%40angular/platform-server","source":"GHSA-68x2-mx4q-78m7"},{"ecosystem":"npm","fixed":["18.2.21"],"introduced":["17.0.0-next.0"],"last_affected":[],"package":"@angular/ssr","purl":null,"source":"GHSA-68x2-mx4q-78m7"},{"ecosystem":"npm","fixed":["18.2.21"],"introduced":["17.0.0-next.0"],"last_affected":[],"package":"@angular/ssr","purl":"pkg:npm/%40angular/ssr","source":"GHSA-68x2-mx4q-78m7"},{"ecosystem":"npm","fixed":["19.2.16"],"introduced":["19.0.0-next.0"],"last_affected":[],"package":"@angular/ssr","purl":null,"source":"GHSA-68x2-mx4q-78m7"},{"ecosystem":"npm","fixed":["19.2.16"],"introduced":["19.0.0-next.0"],"last_affected":[],"package":"@angular/ssr","purl":"pkg:npm/%40angular/ssr","source":"GHSA-68x2-mx4q-78m7"},{"ecosystem":"npm","fixed":["20.3.0"],"introduced":["20.0.0-next.0"],"last_affected":[],"package":"@angular/ssr","purl":null,"source":"GHSA-68x2-mx4q-78m7"},{"ecosystem":"npm","fixed":["20.3.0"],"introduced":["20.0.0-next.0"],"last_affected":[],"package":"@angular/ssr","purl":"pkg:npm/%40angular/ssr","source":"GHSA-68x2-mx4q-78m7"},{"ecosystem":"npm","fixed":["21.0.0-next.3"],"introduced":["21.0.0-next.0"],"last_affected":[],"package":"@angular/ssr","purl":null,"source":"GHSA-68x2-mx4q-78m7"},{"ecosystem":"npm","fixed":["21.0.0-next.3"],"introduced":["21.0.0-next.0"],"last_affected":[],"package":"@angular/ssr","purl":"pkg:npm/%40angular/ssr","source":"GHSA-68x2-mx4q-78m7"},{"ecosystem":"npm","fixed":[],"introduced":["16.0.0-next.0"],"last_affected":["16.2.0"],"package":"@nguniversal/common","purl":null,"source":"GHSA-68x2-mx4q-78m7"},{"ecosystem":"npm","fixed":[],"introduced":["16.0.0-next.0"],"last_affected":["16.2.0"],"package":"@nguniversal/common","purl":"pkg:npm/%40nguniversal/common","source":"GHSA-68x2-mx4q-78m7"}],"prev":{"headline":"FreePBX Endpoint Manager command injection via Network Scanning feature","id":"CVE-2025-59051"},"products":["angular"],"published":"2025-09-10","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-09-10","vendors":["angular"]},"summary":"Concurrent server-side rendering requests may share global state, allowing attackers to leak sensitive data from other users' responses.","url":"https://insights.sbomify.com/CVE-2025-59052/"}