PT-2026-120340
CVE-2026-111753
·
Published
2026-10-20
·
Updated
2026-11-12
Description by
CVSS 3.1
6.5
MediumMetricsAV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions
Angular versions prior to 20.3.34
Angular versions prior to 21.0.3
Description
The
@angular/common HttpClient function xsrfInterceptorFn() uses a regular expression to detect absolute URLs that does not align with the browser's WHATWG URL parser. This discrepancy allows requests containing backslashes, stripped control characters, spaces, or removable ASCII whitespace to be misclassified as relative and same-origin. Consequently, the interceptor attaches the X-XSRF-TOKEN header to requests destined for attacker-controlled cross-origin hosts. If the attacker's server has permissive CORS handling for the custom header, the token can be leaked, enabling Cross-Site Request Forgery (CSRF) attacks against the victim's session.Recommendations
Update to version 20.3.34.
Update to version 21.0.3.
As a temporary workaround, validate and normalize outgoing request URLs using
new URL(url, window.location.origin) to verify that parsedUrl.origin === window.location.origin before passing dynamic URLs to mutating HttpClient requests.
Avoid passing untrusted or user-controlled URLs to HttpClient mutating methods. Found an issue in the description? Have something to add? Feel free to write us 👾