CVE-2025-59052
Angular SSR: Global Platform Injector Race Condition Leads to Cross-Request Data Leakage
Also known as GHSA-68x2-mx4q-78m7
Mitigation
- Upgrade @angular/platform-server to one of 18.2.14, 20.3.0, 19.2.15, 21.0.0-next.3 (or later in the same release line).
- Upgrade @angular/ssr to one of 18.2.21, 19.2.16, 20.3.0, 21.0.0-next.3 (or later in the same release line).
Who should check
- Projects that depend on npm package @angular/platform-server (>= 16.0.0-next.0, < 18.2.14)
- Projects that depend on npm package @angular/ssr (>= 17.0.0-next.0, < 18.2.21)
- Projects that depend on npm package @nguniversal/common (>= 16.0.0-next.0, <= 16.2.0)
- Anyone running angular @angular/platform-server >= 16.0.0-next.0, < 18.2.14; @angular/platform-server >= 20.0.0-next.0, < 20.3.0; @angular/platform-server >= 19.0.0-next.0, < 19.2.15; @angular/platform-server >= 21.0.0-next.0, < 21.0.0-next.3; @angular/ssr >= 17.0.0-next.0, < 18.2.21; @angular/ssr >= 19.0.0-next.0, < 19.2.16; @angular/ssr >= 20.0.0-next.0, < 20.3.0; @angular/ssr >= 21.0.0-next.0, < 21.0.0-next.3; @nguniversal/common >= 16.0.0-next.0, <= 16.2.0
Vulnerability facts
- Affected
- @angular/platform-server >= 16.0.0-next.0, < 18.2.14; @angular/ssr >= 17.0.0-next.0, < 18.2.21; @nguniversal/common >= 16.0.0-next.0, <= 16.2.0
- Fixed in
- 18.2.14, 20.3.0, 19.2.15, 21.0.0-next.3, 18.2.21, 19.2.16
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.1 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: Passive
- Confidentiality impact: High
- Integrity impact: Low
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.53% chance of exploitation in 30 days (percentile 39, 2026-11-26)
- CWE
- CWE-362
- Modified
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. The 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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm @angular/platform-server | >= 16.0.0-next.0, < 18.2.14 | 18.2.14, 20.3.0, 19.2.15, 21.0.0-next.3 | osv |
| npm @angular/ssr | >= 17.0.0-next.0, < 18.2.21 | 18.2.21, 19.2.16, 20.3.0, 21.0.0-next.3 | osv |
| npm @nguniversal/common | >= 16.0.0-next.0, <= 16.2.0 | — | osv |
| angular | @angular/platform-server >= 16.0.0-next.0, < 18.2.14; @angular/platform-server >= 20.0.0-next.0, < 20.3.0; @angular/platform-server >= 19.0.0-next.0, < 19.2.15; @angular/platform-server >= 21.0.0-next.0, < 21.0.0-next.3; @angular/ssr >= 17.0.0-next.0, < 18.2.21; @angular/ssr >= 19.0.0-next.0, < 19.2.16; @angular/ssr >= 20.0.0-next.0, < 20.3.0; @angular/ssr >= 21.0.0-next.0, < 21.0.0-next.3; @nguniversal/common >= 16.0.0-next.0, <= 16.2.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-59052. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-59052.md Affected: @angular/platform-server >= 16.0.0-next.0, < 18.2.14; @angular/ssr >= 17.0.0-next.0, < 18.2.21; @nguniversal/common >= 16.0.0-next.0, <= 16.2.0 Fixed in: 18.2.14, 20.3.0, 19.2.15, 21.0.0-next.3, 18.2.21, 19.2.16 Steps: 1. Search this machine and project for @angular/platform-server (npm), @angular/ssr (npm), @nguniversal/common (npm), angular: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2025-59052 being exploited?
There is no confirmed exploitation: CVE-2025-59052 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.53% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-59052?
High: CVSS 7.1 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2025-59052?
@angular/platform-server >= 16.0.0-next.0, < 18.2.14; @angular/ssr >= 17.0.0-next.0, < 18.2.21; @nguniversal/common >= 16.0.0-next.0, <= 16.2.0.
Is there a fix for CVE-2025-59052?
Yes. Fixed in 18.2.14, 20.3.0, 19.2.15, 21.0.0-next.3, 18.2.21, 19.2.16. Upgrade @angular/platform-server to one of 18.2.14, 20.3.0, 19.2.15, 21.0.0-next.3 (or later in the same release line). Upgrade @angular/ssr to one of 18.2.21, 19.2.16, 20.3.0, 21.0.0-next.3 (or later in the same release line).
How do I check if I'm affected by CVE-2025-59052?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.