Angular Stored XSS Vulnerability via SVG Animation, SVG URL and MathML Attributes
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Active
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 2 fixed, 12 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.
Summary
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 21.0.2, 20.3.15, and 19.2.17, A Stored Cross-Site Scripting (XSS) vulnerability has been identified in the Angular Template Compiler. It occurs because the compiler's internal security schema is incomplete, allowing attackers to bypass Angular's built-in security sanitization. Specifically, the schema fails to classify certain URL-holding attributes (e.g., those that could contain javascript: URLs) as requiring strict URL security, enabling the injection of malicious scripts. This vulnerability is fixed in 21.0.2, 20.3.15, and 19.2.17.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- 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 < 21.0.2; >= 20.0.0-next.0 < 20.3.15; >= 19.0.0-next.0 < 19.2.17; up to 18.2.14 | — | No fix listed | CNA |
| — | @angular/compiler (npm) | 21.0.0-next.0 to before 21.0.2 | 21.0.2 | Patch available | GHSA-v4hv-rgfq-gp49 |
| — | @angular/compiler (npm) | 20.0.0-next.0 to before 20.3.15 | 20.3.15 | Patch available | GHSA-v4hv-rgfq-gp49 |
| — | @angular/compiler (npm) | 19.0.0-next.0 to before 19.2.17 | 19.2.17 | Patch available | GHSA-v4hv-rgfq-gp49 |
| — | @angular/compiler (npm) | up to 18.2.14 | — | No fix listed | GHSA-v4hv-rgfq-gp49 |
- angular Vendorangular Affected >= 21.0.0-next.0 < 21.0.2; >= 20.0.0-next.0 < 20.3.15; >= 19.0.0-next.0 < 19.2.17; up to 18.2.14 Fixed in — No fix listed CNA
- @angular/compiler (npm) Vendor— Affected 21.0.0-next.0 to before 21.0.2 Fixed in 21.0.2 Patch available GHSA-v4hv-rgfq-gp49
- @angular/compiler (npm) Vendor— Affected 20.0.0-next.0 to before 20.3.15 Fixed in 20.3.15 Patch available GHSA-v4hv-rgfq-gp49
- @angular/compiler (npm) Vendor— Affected 19.0.0-next.0 to before 19.2.17 Fixed in 19.2.17 Patch available GHSA-v4hv-rgfq-gp49
- @angular/compiler (npm) Vendor— Affected up to 18.2.14 Fixed in — No fix listed GHSA-v4hv-rgfq-gp49
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:* | up to 18.2.14; 19.0.0 to before 19.2.17; 20.0.0 to before 20.3.15; 21.0.0 to before 21.0.2 | Vulnerable | angular |
- cpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:* Versions up to 18.2.14; 19.0.0 to before 19.2.17; 20.0.0 to before 20.3.15; 21.0.0 to before 21.0.2 Vulnerable ·angular
Remediation
- Fix · GHSA-v4hv-rgfq-gp49 @angular/compiler (npm) Fixed in 21.0.2 Advisory →
- Fix · GHSA-v4hv-rgfq-gp49 @angular/compiler (npm) Fixed in 20.3.15 Advisory →
- Fix · GHSA-v4hv-rgfq-gp49 @angular/compiler (npm) Fixed in 19.2.17 Advisory →
Red Hat 2 advisories
- 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
- RHSA-2026:33371 Released 2026-06-30 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.3.18 security update
- Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 Server eap7-apache-cxf-3.4.10-4.SP2_redhat_00004.1.el7eap, eap7-apache-cxf-rt-3.4.10-4.SP2_redhat_00004.1.el7eap, eap7-apache-cxf-services-3.4.10-4.SP2_redhat_00004.1.el7eap +7
Vendor assessments
Red Hat
Red Hat rating: Important. 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 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 7 | Affected | No fix planned: Will not fix |
| 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 yet |
| Red Hat Quay 3 | Affected | No fix yet |
| Red Hat Single Sign-On 7 | Affected | No fix planned: Will not fix |
| Red Hat Ceph Storage 9.2 | Fixed | RHSA-2026:86618 |
| Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 Server | Fixed | RHSA-2026:33371 |
Not affected: 11 products
- Red Hat Advanced Cluster Management for Kubernetes 2
- Red Hat Ceph Storage 9.2
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat JBoss Enterprise Application Platform 7
- Red Hat JBoss Enterprise Application Platform 7.3 EUS for RHEL 7 Server
- 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
Timeline
- 2026-10-02 Threatist record created from CVE-2025-66412
- 2026-10-03 Alias added: GHSA-v4hv-rgfq-gp49
- 2026-10-21 Fix available: RHSA-2026:86618 · Red Hat
- 2026-10-21 Fix available: Red Hat Ceph Storage 9.2 · Red Hat
References
Advisory 2
More Angular vulnerabilities
- 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-37971 A reflected cross-site scripting (XSS) vulnerability in CKeditor v46.1.0 & Angular… CVSS 3.1MEDIUM 5.4
- TI-2026-36931 Angular: URL Parser Differential in @angular/platform-server leading to SSRF Allowlist Bypass CVSS 4.0HIGH 8.8
- TI-2026-34131 Angular: SSRF via Hostname Hijacking in @angular/platform-server CVSS 4.0HIGH 8.8
Sources
- CVE-2025-66412 · CVE Program
- CVE-2025-66412 · NVD
- FIRST EPSS
- GHSA-v4hv-rgfq-gp49 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-66412 · 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