CVE-2026-22610
Angular has XSS Vulnerability via Unsanitized SVG Script Attributes
Description
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.
How to fix CVE-2026-22610
To remediate CVE-2026-22610, upgrade the affected package to a fixed version below.
- —no fix listed
- —upgrade to 21.1.0-rc.0 or later
- —upgrade to 21.1.0-rc.0 or later
Is CVE-2026-22610 being exploited?
Low — EPSS is 0.0%, meaning exploitation activity has not been observed at scale.
Affected packages (3)
- from 0
- >= 21.1.0-next.0, < 21.1.0-rc.0
- >= 21.1.0-next.0, < 21.1.0-rc.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |