Angular: XSRF Token Leakage via URL Parsing Discrepancy in Angular HTTP Client (Incomplete fix for CVE-2025-66035)
- CVE-2026-111753
- GHSA-jfgx-762w-99vr
- EUVD-2026-117786
Description
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 20.3.34 and 21.0.3, the @angular/common HttpClient function xsrfInterceptorFn uses a regular expression that does not normalize request URLs in the same way as the browser's WHATWG URL parser. With XSRF protection enabled, a mutating HTTP request to an attacker-controlled URL containing backslashes, stripped control characters or spaces, or removable ASCII whitespace can be misclassified as relative and same-origin, causing the interceptor to attach the X-XSRF-TOKEN header before the browser dispatches the request to a cross-origin host. With permissive CORS handling for the custom header, the attacker can obtain the victim's XSRF token and use it to perform cross-site request forgery against the victim session. This issue is fixed in versions 20.3.34 and 21.0.3.
Text from the CVE.org record.
Recommendation
@angular/common
- If you run 21.0.xupdate to 21.0.3 or laterPatch update: breaking changes are unlikely@angular/common 21.0.3 on its registry (opens in a new tab)
- If you run a version from 20.0.0 to before 20.3.34update to 20.3.34 or laterMinor version change: check the release notes@angular/common 20.3.34 on its registry (opens in a new tab)
Some affected versions have no stated fix.
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
angular
Affected versions Fixed in <= 19.2.25 none stated >= 20.0.0, < 20.3.34 none stated >= 21.0.0, < 21.0.3 none stated @angular/commonnpm
Affected versions Fixed in from 21.0.0 to before 21.0.3 21.0.3 from 20.0.0 to before 20.3.34 20.3.34 up to 19.2.25 none stated
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.