Angular
Angular has XSS Vulnerability via Unsanitized SVG Script Attributes
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 21.1.0-next.0, < 21.1.0-rc.0
- >= 21.0.0-next.0, < 21.0.7
- >= 20.0.0-next.0, < 20.3.16
- < 19.2.18
Fixed in 21.1.0-rc.0, 21.0.7, 20.3.16, 19.2.18
Mitigation
Upgrade angular to 21.1.0-rc.0 or 21.0.7 or 20.3.16 or 19.2.18 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 8.3 days after publication; not in CISA KEV. First PoC: ashizZz/CVE-2026-22610 (created 18 Jan 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| ashizZz/CVE-2026-22610 | 18 Jan 2026 +8.3 d | 1 | PoC via PoC Index
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.