Vulnerability · Published Sep 10, 2025 · Assigned by GitHub_M

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

High 7.1

In plain English

A high-severity race condition in angular from angular. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 29% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)7.1High
Exploit odds (30 days)0.4%top 70.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@angular/platform-server18.2.14GHSA-68x2-mx4q-78m7
npm@angular/platform-server20.3.0GHSA-68x2-mx4q-78m7
npm@angular/platform-server19.2.15GHSA-68x2-mx4q-78m7
npm@angular/platform-server21.0.0-next.3GHSA-68x2-mx4q-78m7
npm@angular/ssr18.2.21GHSA-68x2-mx4q-78m7
npm@angular/ssr19.2.16GHSA-68x2-mx4q-78m7
npm@angular/ssr20.3.0GHSA-68x2-mx4q-78m7
npm@angular/ssr21.0.0-next.3GHSA-68x2-mx4q-78m7
npm@nguniversal/commonno fix listedGHSA-68x2-mx4q-78m7

Affected products (as reported)

VendorProductVersions
angular 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

Weakness: CWE-362 · 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

References