# CVE-2025-59052: Angular SSR: Global Platform Injector Race Condition Leads to Cross-Request Data Leakage

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.53% (percentile 39, 2026-11-26)
- **CWE:** CWE-362
- **Aliases:** GHSA-68x2-mx4q-78m7
- **Published:** 2025-09-10T20:13:56.965Z
- **Modified:** 2026-06-17T09:45:30.480Z

## 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

## 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

- npm `@angular/platform-server`: affected \>= 16.0.0-next.0, \< 18.2.14; fixed 18.2.14, 20.3.0, 19.2.15, 21.0.0-next.3 (osv)
- npm `@angular/ssr`: affected \>= 17.0.0-next.0, \< 18.2.21; fixed 18.2.21, 19.2.16, 20.3.0, 21.0.0-next.3 (osv)
- npm `@nguniversal/common`: affected \>= 16.0.0-next.0, \<= 16.2.0; fixed no fix listed yet (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)

## 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).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/angular/angular/security/advisories/GHSA-68x2-mx4q-78m7>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-59052>
- patch: <https://github.com/angular/angular-cli/pull/31108>
- patch: <https://github.com/angular/angular/pull/63562>
- other: <https://github.com/angular/angular>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-59052>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-68x2-mx4q-78m7> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-59052> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-59052>
