Angular HTTP Client Has XSRF Token Leakage via Protocol-Relative URLs
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Partial Red Hat: 1 fixed, 11 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-201.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| angular | angular | 21.0.0-next.0 to before 21.0.1; 20.0.0-next.0 to before 20.3.14; before 19.2.16 | 21.0.1, 20.3.14, 19.2.16 | Patch available | CNA |
| — | @angular/common (npm) | 21.0.0-next.0 to before 21.0.1 | 21.0.1 | Patch available | GHSA-58c5-g7wp-6w37 |
| — | @angular/common (npm) | 20.0.0-next.0 to before 20.3.14 | 20.3.14 | Patch available | GHSA-58c5-g7wp-6w37 |
| — | @angular/common (npm) | before 19.2.16 | 19.2.16 | Patch available | GHSA-58c5-g7wp-6w37 |
- angular Vendorangular Affected 21.0.0-next.0 to before 21.0.1; 20.0.0-next.0 to before 20.3.14; before 19.2.16 Fixed in 21.0.1, 20.3.14, 19.2.16 Patch available CNA
- @angular/common (npm) Vendor— Affected 21.0.0-next.0 to before 21.0.1 Fixed in 21.0.1 Patch available GHSA-58c5-g7wp-6w37
- @angular/common (npm) Vendor— Affected 20.0.0-next.0 to before 20.3.14 Fixed in 20.3.14 Patch available GHSA-58c5-g7wp-6w37
- @angular/common (npm) Vendor— Affected before 19.2.16 Fixed in 19.2.16 Patch available GHSA-58c5-g7wp-6w37
Remediation
- Fix · CNA angular (angular) Fixed in 21.0.1, 20.3.14, 19.2.16
- Fix · GHSA-58c5-g7wp-6w37 @angular/common (npm) Fixed in 21.0.1 Advisory →
- Fix · GHSA-58c5-g7wp-6w37 @angular/common (npm) Fixed in 20.3.14 Advisory →
- Fix · GHSA-58c5-g7wp-6w37 @angular/common (npm) Fixed in 19.2.16 Advisory →
Red Hat 1 advisory
- RHSA-2026:86618 Released 2026-10-21 · Red Hat rating CriticalNew container image: rhceph-9.2
- Red Hat Ceph Storage 9.2 registry.redhat.io/rhceph/rhceph-9-rhel10
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Logging Subsystem for Red Hat OpenShift | Affected | No fix planned: Will not fix |
| Red Hat Ceph Storage 4 | Affected | No fix yet |
| Red Hat Ceph Storage 5 | Affected | No fix yet |
| Red Hat Ceph Storage 6 | Affected | No fix yet |
| Red Hat Ceph Storage 7 | Affected | No fix yet |
| Red Hat Ceph Storage 8 | Affected | No fix yet |
| Red Hat Enterprise Linux 10 | Affected | No fix yet |
| Red Hat Enterprise Linux 8 | Affected | No fix yet |
| Red Hat Enterprise Linux 9 | Affected | No fix yet |
| Red Hat Fuse 7 | Affected | No fix planned: Will not fix |
| Red Hat Single Sign-On 7 | Affected | No fix planned: Will not fix |
| Red Hat Ceph Storage 9.2 | Fixed | RHSA-2026:86618 |
Not affected: 12 products
- Red Hat Advanced Cluster Management for Kubernetes 2
- Red Hat Ceph Storage 9.2
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat JBoss Enterprise Application Platform 7
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat OpenShift AI (RHOAI)
- Red Hat OpenStack Platform 16.2
- Red Hat Quay 3
Timeline
- 2026-10-02 Threatist record created from CVE-2025-66035
- 2026-10-03 Alias added: GHSA-58c5-g7wp-6w37
- 2026-10-08 EPSS moved to the 50th–90th percentile
- 2026-10-21 Fix available: RHSA-2026:86618 · Red Hat
- 2026-10-21 Fix available: Red Hat Ceph Storage 9.2 · Red Hat
References
Other 10
- https://github.com/angular/angular/security/advisories/GHSA-58c5-g7wp-6w37
- https://github.com/angular/angular/commit/0276479e7d0e280e0f8d26fa567d3b7aa97a516f
- https://github.com/angular/angular/commit/05fe6686a97fa0bcd3cf157805b3612033f975bc
- https://github.com/angular/angular/commit/3240d856d942727372a705252f7c8c115394a41e
- https://github.com/angular/angular/releases/tag/19.2.16
- https://github.com/angular/angular/releases/tag/20.3.14
- https://github.com/angular/angular/releases/tag/21.0.1
- https://cert-portal.siemens.com/productcert/html/ssa-253495.html
- https://cert-portal.siemens.com/productcert/html/ssa-485750.html
- https://github.com/angular/angular
More angular vulnerabilities
- TI-2026-74069 Infinite loop in Angular SSR HTML parser allows denial of service CVSS 4.0HIGH 8.7
- TI-2026-60076 Angular: SSRF and Cross-Origin Credential Disclosure via URL Resolution Discrepancy in SSR CVSS 4.0HIGH 8.6
- TI-2026-60080 Angular: SSR XSS via Unescaped <template> Content Across DocumentFragment Boundaries in Fallback Raw-Content Elements CVSS 4.0HIGH 8.6
- TI-2026-60078 Angular: SSR XSS via Unescaped Processing Instruction (<?...?>) Nodes in Fallback Raw-Content Elements CVSS 4.0HIGH 8.6
- TI-2025-38694 Server-Side Request Forgery (SSRF) in Angular SSR CVSS 4.0HIGH 8.7
- TI-2026-22098 Angular SSR has an Open Redirect via X-Forwarded-Prefix CVSS 4.0MEDIUM 6.9
Sources
- CVE-2025-66035 · CVE Program
- CVE-2025-66035 · NVD
- FIRST EPSS
- GHSA-58c5-g7wp-6w37 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-66035 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences