Angular has XSS Vulnerability via Unsanitized SVG Script 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, 3 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 versions 19.2.18, 20.3.16, 21.0.7, and 21.1.0-rc.0, a cross-site scripting (XSS) vulnerability has been identified in the Angular Template Compiler. The vulnerability exists because Angular’s internal sanitization schema fails to recognize the href and xlink:href attributes of SVG <script> elements as a Resource URL context. This issue has been patched in versions 19.2.18, 20.3.16, 21.0.7, and 21.1.0-rc.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
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.1.0-next.0 to before 21.1.0-rc.0; 21.0.0-next.0 to before 21.0.7; 20.0.0-next.0 to before 20.3.16; before 19.2.18 | 21.1.0-rc.0, 21.0.7, 20.3.16, 19.2.18 | Patch available | CNA |
| — | @angular/compiler (npm) | 21.1.0-next.0 to before 21.1.0-rc.0 | 21.1.0-rc.0 | Patch available | GHSA-jrmj-c5cx-3cw6 |
| — | @angular/core (npm) | 21.1.0-next.0 to before 21.1.0-rc.0 | 21.1.0-rc.0 | Patch available | GHSA-jrmj-c5cx-3cw6 |
| — | @angular/compiler (npm) | 21.0.0-next.0 to before 21.0.7 | 21.0.7 | Patch available | GHSA-jrmj-c5cx-3cw6 |
| — | @angular/core (npm) | 21.0.0-next.0 to before 21.0.7 | 21.0.7 | Patch available | GHSA-jrmj-c5cx-3cw6 |
| — | @angular/compiler (npm) | 20.0.0-next.0 to before 20.3.16 | 20.3.16 | Patch available | GHSA-jrmj-c5cx-3cw6 |
| — | @angular/core (npm) | 20.0.0-next.0 to before 20.3.16 | 20.3.16 | Patch available | GHSA-jrmj-c5cx-3cw6 |
| — | @angular/compiler (npm) | 19.0.0-next.0 to before 19.2.18 | 19.2.18 | Patch available | GHSA-jrmj-c5cx-3cw6 |
| — | @angular/core (npm) | 19.0.0-next.0 to before 19.2.18 | 19.2.18 | Patch available | GHSA-jrmj-c5cx-3cw6 |
| — | @angular/compiler (npm) | up to 18.2.14 | — | No fix listed | GHSA-jrmj-c5cx-3cw6 |
| — | @angular/core (npm) | up to 18.2.14 | — | No fix listed | GHSA-jrmj-c5cx-3cw6 |
- angular Vendorangular Affected 21.1.0-next.0 to before 21.1.0-rc.0; 21.0.0-next.0 to before 21.0.7; 20.0.0-next.0 to before 20.3.16; before 19.2.18 Fixed in 21.1.0-rc.0, 21.0.7, 20.3.16, 19.2.18 Patch available CNA
- @angular/compiler (npm) Vendor— Affected 21.1.0-next.0 to before 21.1.0-rc.0 Fixed in 21.1.0-rc.0 Patch available GHSA-jrmj-c5cx-3cw6
- @angular/core (npm) Vendor— Affected 21.1.0-next.0 to before 21.1.0-rc.0 Fixed in 21.1.0-rc.0 Patch available GHSA-jrmj-c5cx-3cw6
- @angular/compiler (npm) Vendor— Affected 21.0.0-next.0 to before 21.0.7 Fixed in 21.0.7 Patch available GHSA-jrmj-c5cx-3cw6
- @angular/core (npm) Vendor— Affected 21.0.0-next.0 to before 21.0.7 Fixed in 21.0.7 Patch available GHSA-jrmj-c5cx-3cw6
- @angular/compiler (npm) Vendor— Affected 20.0.0-next.0 to before 20.3.16 Fixed in 20.3.16 Patch available GHSA-jrmj-c5cx-3cw6
- @angular/core (npm) Vendor— Affected 20.0.0-next.0 to before 20.3.16 Fixed in 20.3.16 Patch available GHSA-jrmj-c5cx-3cw6
- @angular/compiler (npm) Vendor— Affected 19.0.0-next.0 to before 19.2.18 Fixed in 19.2.18 Patch available GHSA-jrmj-c5cx-3cw6
- @angular/core (npm) Vendor— Affected 19.0.0-next.0 to before 19.2.18 Fixed in 19.2.18 Patch available GHSA-jrmj-c5cx-3cw6
- @angular/compiler (npm) Vendor— Affected up to 18.2.14 Fixed in — No fix listed GHSA-jrmj-c5cx-3cw6
- @angular/core (npm) Vendor— Affected up to 18.2.14 Fixed in — No fix listed GHSA-jrmj-c5cx-3cw6
CPE configurations NVD · 6
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:* | up to 18.2.14; 19.0.0 to before 19.2.18; 20.0.0 to before 20.3.16; 21.0.0 to before 21.0.7 | Vulnerable | angular |
| cpe:2.3:a:angular:angular:21.1.0:next0:*:*:*:node.js:*:* | 21.1.0 next0 | Vulnerable | angular |
| cpe:2.3:a:angular:angular:21.1.0:next1:*:*:*:node.js:*:* | 21.1.0 next1 | Vulnerable | angular |
| cpe:2.3:a:angular:angular:21.1.0:next2:*:*:*:node.js:*:* | 21.1.0 next2 | Vulnerable | angular |
| cpe:2.3:a:angular:angular:21.1.0:next3:*:*:*:node.js:*:* | 21.1.0 next3 | Vulnerable | angular |
| cpe:2.3:a:angular:angular:21.1.0:next4:*:*:*:node.js:*:* | 21.1.0 next4 | Vulnerable | angular |
- cpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:* Versions up to 18.2.14; 19.0.0 to before 19.2.18; 20.0.0 to before 20.3.16; 21.0.0 to before 21.0.7 Vulnerable ·angular
- cpe:2.3:a:angular:angular:21.1.0:next0:*:*:*:node.js:*:* Versions 21.1.0 next0 Vulnerable ·angular
- cpe:2.3:a:angular:angular:21.1.0:next1:*:*:*:node.js:*:* Versions 21.1.0 next1 Vulnerable ·angular
- cpe:2.3:a:angular:angular:21.1.0:next2:*:*:*:node.js:*:* Versions 21.1.0 next2 Vulnerable ·angular
- cpe:2.3:a:angular:angular:21.1.0:next3:*:*:*:node.js:*:* Versions 21.1.0 next3 Vulnerable ·angular
- cpe:2.3:a:angular:angular:21.1.0:next4:*:*:*:node.js:*:* Versions 21.1.0 next4 Vulnerable ·angular
Remediation
- Fix · CNA angular (angular) Fixed in 21.1.0-rc.0, 21.0.7, 20.3.16, 19.2.18
- Fix · GHSA-jrmj-c5cx-3cw6 @angular/compiler (npm) Fixed in 21.1.0-rc.0 Advisory →
- Fix · GHSA-jrmj-c5cx-3cw6 @angular/core (npm) Fixed in 21.1.0-rc.0 Advisory →
- Fix · GHSA-jrmj-c5cx-3cw6 @angular/compiler (npm) Fixed in 21.0.7 Advisory →
- Fix · GHSA-jrmj-c5cx-3cw6 @angular/core (npm) Fixed in 21.0.7 Advisory →
- Fix · GHSA-jrmj-c5cx-3cw6 @angular/compiler (npm) Fixed in 20.3.16 Advisory →
- Fix · GHSA-jrmj-c5cx-3cw6 @angular/core (npm) Fixed in 20.3.16 Advisory →
- Fix · GHSA-jrmj-c5cx-3cw6 @angular/compiler (npm) Fixed in 19.2.18 Advisory →
- Fix · GHSA-jrmj-c5cx-3cw6 @angular/core (npm) Fixed in 19.2.18 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:36882 Released 2026-07-08 · Red Hat rating ImportantRed Hat Advanced Cluster Management for Kubernetes v2.14.3 security update
- Red Hat Advanced Cluster Management for Kubernetes 2.14 registry.redhat.io/rhacm2/acm-cli-rhel9, registry.redhat.io/rhacm2/acm-governance-policy-addon-controller-rhel9, registry.redhat.io/rhacm2/acm-governance-policy-framework-addon-rhel9 +10
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 Fuse 7 | Affected | No fix planned: Will not fix |
| Red Hat Single Sign-On 7 | Affected | No fix planned: Will not fix |
| Red Hat Advanced Cluster Management for Kubernetes 2.14 | Fixed | RHSA-2026:36882 |
| Red Hat Ceph Storage 9.2 | Fixed | RHSA-2026:86618 |
Not affected: 11 products
- Red Hat Advanced Cluster Management for Kubernetes 2.14
- 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 OpenStack Platform 16.2
- Red Hat Quay 3
Timeline
- 2026-10-02 Threatist record created from CVE-2026-22610
- 2026-10-03 Alias added: GHSA-jrmj-c5cx-3cw6
- 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-2026-22610 · CVE Program
- CVE-2026-22610 · NVD
- FIRST EPSS
- GHSA-jrmj-c5cx-3cw6 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-22610 · 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