cve.bz

CVE-2025-59052 angular angular: Race Condition

7.1 highEPSS 0.4%Fix available

High (7.1) in angular angular. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in @angular/platform-server 18.2.14, 19.2.15, 20.3.0.

On this page
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.

Severity

CVSS 4.0

7.1 high
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
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 31st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-09-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • @angular/platform-server (npm): fixed in 18.2.14, 20.3.0, 19.2.15, 21.0.0-next.3
  • @angular/ssr (npm): fixed in 18.2.21, 19.2.16, 20.3.0, 21.0.0-next.3

Ask an AI about this CVE

Show the promptExplain CVE-2025-59052 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-59052?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-59052?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-59052 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
angular@angular/platform-server >= 16.0.0-next.0, < 18.2.14
angular@angular/platform-server >= 20.0.0-next.0, < 20.3.0
angular@angular/platform-server >= 19.0.0-next.0, < 19.2.15
angular@angular/platform-server >= 21.0.0-next.0, < 21.0.0-next.3
angular@angular/ssr >= 17.0.0-next.0, < 18.2.21
angular@angular/ssr >= 19.0.0-next.0, < 19.2.16
angular@angular/ssr >= 20.0.0-next.0, < 20.3.0
angular@angular/ssr >= 21.0.0-next.0, < 21.0.0-next.3
angular@nguniversal/common >= 16.0.0-next.0, <= 16.2.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-68x2-mx4q-78m7npm@angular/platform-server>=16.0.0-next.0 <18.2.1418.2.14
GHSA-68x2-mx4q-78m7npm@angular/platform-server>=20.0.0-next.0 <20.3.020.3.0
GHSA-68x2-mx4q-78m7npm@angular/platform-server>=19.0.0-next.0 <19.2.1519.2.15
GHSA-68x2-mx4q-78m7npm@angular/platform-server>=21.0.0-next.0 <21.0.0-next.321.0.0-next.3
GHSA-68x2-mx4q-78m7npm@angular/ssr>=17.0.0-next.0 <18.2.2118.2.21
GHSA-68x2-mx4q-78m7npm@angular/ssr>=19.0.0-next.0 <19.2.1619.2.16
GHSA-68x2-mx4q-78m7npm@angular/ssr>=20.0.0-next.0 <20.3.020.3.0
GHSA-68x2-mx4q-78m7npm@angular/ssr>=21.0.0-next.0 <21.0.0-next.321.0.0-next.3
GHSA-68x2-mx4q-78m7npm@nguniversal/common>=16.0.0-next.0 <=16.2.0no fix published

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8dotnet5.0-build-reference-packagesWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-59052.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON