{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-66035","id":"CVE-2025-66035","title":"Angular HTTP Client Has XSRF Token Leakage via Protocol-Relative URLs","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) tok","descriptionLong":"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.","published":"2025-11-26T22:18:35.692Z","updated":"2026-10-28T02:30:28.777747298Z","reserved":"2025-11-21T01:08:02.615Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":7.7,"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","rating":"high","source":"GitHub_M"},"metrics":[{"version":"4.0","score":7.7,"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","rating":"high","source":"GitHub_M"},{"version":"4.0","score":7.7,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"high","source":"GitHub"}],"rating":"high","products":["angular"],"affectedProducts":[{"vendor":"angular","product":"angular","defaultStatus":null,"versions":[{"version":">= 21.0.0-next.0, < 21.0.1","status":"affected"},{"version":">= 20.0.0-next.0, < 20.3.14","status":"affected"},{"version":"< 19.2.16","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"@angular/common","purl":"pkg:npm/%40angular/common","ranges":[">=21.0.0-next.0 <21.0.1",">=20.0.0-next.0 <20.3.14","<19.2.16"],"fixed":["21.0.1","20.3.14","19.2.16"],"advisory":"GHSA-58c5-g7wp-6w37"}],"cwes":["CWE-201","CWE-359"],"aliases":["GHSA-58c5-g7wp-6w37"],"references":[{"url":"https://github.com/angular/angular/security/advisories/GHSA-58c5-g7wp-6w37","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/angular/angular/commit/0276479e7d0e280e0f8d26fa567d3b7aa97a516f","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/angular/angular/commit/05fe6686a97fa0bcd3cf157805b3612033f975bc","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/angular/angular/commit/3240d856d942727372a705252f7c8c115394a41e","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/angular/angular/releases/tag/19.2.16","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/angular/angular/releases/tag/20.3.14","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/angular/angular/releases/tag/21.0.1","tags":["x_refsource_MISC","web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-485750.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-253495.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66035.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66035","tags":["advisory"]},{"url":"https://github.com/angular/angular","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00716,"epssPercentile":0.54479,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-66035","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66035","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-66035","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-58c5-g7wp-6w37","ok":true,"note":"GHSA-58c5-g7wp-6w37"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-66035","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}