Skip to main content
← All vulnerabilities
CVE-2026-22610GHSA-JRMJ-C5CX-3CW6

Angular has XSS Vulnerability via Unsanitized SVG Script Attributes

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 21.1.0-rc.0, 21.0.7, 20.3.16, 19.2.18
1 proof of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • angular angular

    From 21.1.0-next.0 · fixed in 21.1.0-rc.0; From 21.0.0-next.0 · fixed in 21.0.7; From 20.0.0-next.0 · fixed in 20.3.16; fixed in 19.2.18

  • @angular/compilernpm

    From 21.1.0-next.0 · fixed in 21.1.0-rc.0

  • @angular/corenpm

    From 21.1.0-next.0 · fixed in 21.1.0-rc.0

  • @angular/compilernpm

    From 21.0.0-next.0 · fixed in 21.0.7

  • @angular/corenpm

    From 21.0.0-next.0 · fixed in 21.0.7

  • @angular/compilernpm

    From 20.0.0-next.0 · fixed in 20.3.16

  • @angular/corenpm

    From 20.0.0-next.0 · fixed in 20.3.16

  • @angular/compilernpm

    From 19.0.0-next.0 · fixed in 19.2.18

  • @angular/corenpm

    From 19.0.0-next.0 · fixed in 19.2.18

  • @angular/compilernpm

    through 18.2.14

  • @angular/corenpm

    through 18.2.14

References 4

GitHub · angular/angular

GitHub · ashizZz/CVE-2026-22610