{"id":"CVE-2025-66035","published":"2025-11-26T22:18:35Z","modified":"2026-06-02T13:00:29Z","title":"Angular HTTP Client Has XSRF Token Leakage via Protocol-Relative URLs","vendor":"angular","product":"angular","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00716,"percentile":0.54677,"provenance":"source"},"cwes":[{"id":"CWE-201","name":"Insertion of Sensitive Information Into Sent Data"},{"id":"CWE-359","name":"Exposure of Private Personal Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/angular/angular/security/advisories/GHSA-58c5-g7wp-6w37","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/angular/angular/commit/0276479e7d0e280e0f8d26fa567d3b7aa97a516f","tags":["x_refsource_MISC"]},{"url":"https://github.com/angular/angular/commit/05fe6686a97fa0bcd3cf157805b3612033f975bc","tags":["x_refsource_MISC"]},{"url":"https://github.com/angular/angular/commit/3240d856d942727372a705252f7c8c115394a41e","tags":["x_refsource_MISC"]},{"url":"https://github.com/angular/angular/releases/tag/19.2.16","tags":["x_refsource_MISC"]},{"url":"https://github.com/angular/angular/releases/tag/20.3.14","tags":["x_refsource_MISC"]},{"url":"https://github.com/angular/angular/releases/tag/21.0.1","tags":["x_refsource_MISC"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-485750.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-253495.html","tags":[]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":10.94},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"angular","affectedVersions":[{"vendor":"angular","product":"angular","versions":[">= 21.0.0-next.0, < 21.0.1",">= 20.0.0-next.0, < 20.3.14","< 19.2.16"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-11-28T18:28:53.883453Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@angular/common","vulnerableRanges":[">=21.0.0-next.0, <21.0.1",">=20.0.0-next.0, <20.3.14","<19.2.16"],"patched":["21.0.1","20.3.14","19.2.16"],"from":["GHSA-58c5-g7wp-6w37"],"provenance":"source"}],"summary":{"text":"Angular's HttpClient in versions before 19.2.16, 20.3.14 and 21.0.1 mishandles protocol-relative request URLs (those beginning with //), treating them as same-origin so that the XSRF token is automatically attached to the X-XSRF-TOKEN header. An attacker who can get the application to issue an HTTP request to a protocol-relative URL they control can obtain the XSRF token, and this requires no privileges or user interaction, though the attacker must be able to influence the URL the application requests.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:00:22Z"},"euvd":{"id":"EUVD-2025-199769","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-angular-cve-2025-66035","children":[{"from":"CVE-2025-66035","to":"CVE-2026-111753","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@angular/common","fromFixed":"21.0.1","toFixed":"21.0.3","daysApart":344},{"kind":"same-code","provenance":"machine","files":["packages/common/http/src/xsrf.ts"],"commits":["https://github.com/angular/angular/commit/0276479e7d0e280e0f8d26fa567d3b7aa97a516f","https://github.com/angular/angular/commit/05fe6686a97fa0bcd3cf157805b3612033f975bc","https://github.com/angular/angular/commit/20474d3f0fd7c64071add6e84acf720627e5c19b","https://github.com/angular/angular/commit/933ce817d53e25926844fa56af8230816763d08e"],"basis":"shared function","functions":["HttpXsrfCookieExtractor"]},{"kind":"similar","provenance":"machine","score":0.42,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2025-66035","published":"2025-11-26","fixed":"21.0.1","kev":false},{"cve":"CVE-2026-111753","published":"2026-11-05","fixed":"21.0.3","kev":false},{"cve":"CVE-2026-50170","published":"2026-06-22","fixed":"22.0.0-rc.2","kev":false,"link":{"from":"CVE-2025-66035","to":"CVE-2026-50170","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@angular/common","fromFixed":"20.3.14","toFixed":"20.3.22","daysApart":208},{"kind":"version-step","provenance":"source","package":"npm:@angular/common","fromFixed":"19.2.16","toFixed":"19.2.23","daysApart":208}]}},{"cve":"CVE-2026-50171","published":"2026-06-22","fixed":"22.0.0-rc.2","kev":false,"link":{"from":"CVE-2025-66035","to":"CVE-2026-50171","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@angular/common","fromFixed":"20.3.14","toFixed":"20.3.22","daysApart":208},{"kind":"version-step","provenance":"source","package":"npm:@angular/common","fromFixed":"19.2.16","toFixed":"19.2.23","daysApart":208}]}}],"package":"npm:@angular/common"}}