CVE-2025-59052
JavaScript vulnerability analysis and mitigation

Overview

A high-severity vulnerability (CVE-2025-59052) has been identified in Angular's server-side rendering (SSR) feature, with a CVSS score of 7.1. The vulnerability stems from a global platform injector race condition in Angular's dependency injection system that could lead to cross-request data leakage. The flaw affects Angular versions from 16.0.0-next.0 up to versions prior to 18.2.14, 19.2.15, 20.3.0, and 21.0.0-next.3 in the @angular/platform-server, @angular/ssr, and @nguniversal/common packages (Angular Advisory).

Technical details

The vulnerability occurs because Angular's SSR uses a DI container (platform injector) to hold request-specific state, which was historically stored as a JavaScript module-scoped global variable. When multiple requests are processed concurrently, they could inadvertently share or overwrite the global injector state. The issue affects several APIs including bootstrapApplication, getPlatform, and destroyPlatform, which previously relied on the global platform injector state (Security Online, Angular Advisory).

Impact

The vulnerability can lead to one request responding with data meant for a completely different request, potentially leaking sensitive data, tokens, or headers included in the rendered page. Any attacker with network access to send requests that receive rendered responses could potentially exploit this flaw by sending multiple requests and inspecting the responses for information leaks (Angular Advisory).

Mitigation and workarounds

The issue has been patched in all active release lines with versions @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. For those unable to update immediately, several workarounds are available: disable SSR via Server Routes or builder options, remove asynchronous behavior from custom bootstrap functions, eliminate usage of getPlatform() in application code, and ensure the server build defines ngJitMode as false (Angular Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59041HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesSep 10, 2025
CVE-2025-58764HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesSep 10, 2025
CVE-2025-59049HIGH7.5
  • JavaScriptJavaScript
  • @mockoon/commons-server
NoYesSep 10, 2025
CVE-2025-59052HIGH7.1
  • JavaScriptJavaScript
  • @nguniversal/common
NoYesSep 10, 2025
CVE-2025-57520LOW2.1
  • JavaScriptJavaScript
  • decap-cms
NoNoSep 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management