{"id":74392,"date":"2025-11-27T02:45:49","date_gmt":"2025-11-26T23:15:49","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-66035-angular-http-client-has-xsrf-token-leakage-via-protocol-relative-urls\/"},"modified":"2025-11-27T02:45:49","modified_gmt":"2025-11-26T23:15:49","slug":"cve-2025-66035-angular-http-client-has-xsrf-token-leakage-via-protocol-relative-urls","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-66035-angular-http-client-has-xsrf-token-leakage-via-protocol-relative-urls\/","title":{"rendered":"CVE-2025-66035 &#8211; Angular HTTP Client Has XSRF Token Leakage via Protocol-Relative URLs"},"content":{"rendered":"<p>CVE ID : CVE-2025-66035<\/p>\n<p>Published :  Nov. 26, 2025, 11:15 p.m. | 1\u00a0hour, 6\u00a0minutes ago<\/p>\n<p>Description : 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&#8217;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.<\/p>\n<p>Severity: 7.7 | HIGH<\/p>\n<p>Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-66035 Published : Nov. 26, 2025, 11:15 p.m. | 1\u00a0hour, 6\u00a0minutes ago Description : 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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-74392","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/74392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=74392"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/74392\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=74392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=74392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=74392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}