CVE-2025-66035
NoneCVSS
—
EPSS
0.7%
Published
Nov 26, 2025
CISA due date
—
The record
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to versions 19.2.16, 20.3.14, and 21.0.1, there is a XSRF token leakage via protocol-relative URLs in angular HTTP clients. The vulnerability is a Credential Leak by App Logic that leads to the unauthorized disclosure of the Cross-Site Request Forgery (XSRF) token to an attacker-controlled domain. Angular's HttpClient has a built-in XSRF protection mechanism that works by checking if a request URL starts with a protocol (http:// or https://) to determine if it is cross-origin. If the URL starts with protocol-relative URL (//), it is incorrectly treated as a same-origin request, and the XSRF token is automatically added to the X-XSRF-TOKEN header. This issue has been patched in versions 19.2.16, 20.3.14, and 21.0.1. A workaround for this issue involves avoiding using protocol-relative URLs (URLs starting with //) in HttpClient requests. All backend communication URLs should be hardcoded as relative paths (starting with a single /) or fully qualified, trusted absolute URLs.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | @angular/common | 0 | 19.2.16 |
| npm | @angular/common | 20.0.0-next.0 | 20.3.14 |
| npm | @angular/common | 21.0.0-next.0 | 21.0.1 |
Related vulnerabilities
- GHSA-58c5-g7wp-6w37 Angular is Vulnerable to XSRF Token Leakage via Protocol-Relative URLs in Angular HTTP… Same vulnerability
- CVE-2026-50170 Angular is a development platform for building mobile and desktop web applications using… Also affects @angular/common
- CVE-2026-50171 Angular is a development platform for building mobile and desktop web applications using… Also affects @angular/common
- CVE-2026-54268 Angular is a development platform for building mobile and desktop web applications using… Also affects @angular/common
- CVE-2026-54266 Angular is a development platform for building mobile and desktop web applications using… Also affects @angular/common
- GHSA-48r7-hpm6-gfxm @angular/common: Denial of Service (DoS) via OOM in Date Formatting (formatDate) Also affects @angular/common
- GHSA-39pv-4j6c-2g6v @angular/common: Weak 32-Bit Cache Key Hashing in `HttpTransferCache` Leading to… Also affects @angular/common
- GHSA-p3vc-36g9-x9gr @angular/common: Denial of Service (DoS) via OOM in Number Formatting (digitsInfo) Also affects @angular/common