CVE-2026-22610
Modified
Modified - Updated After Analysis
Cross-Site Scripting in Angular Template Compiler via SVG Attributes
Publication date: 2026-01-10
Last updated on: 2026-06-02
Assigner: GitHub, Inc.
Description
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.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| angular | angular | to 18.2.14 (inc) |
| angular | angular | From 19.0.0 (inc) to 19.2.18 (exc) |
| angular | angular | From 20.0.0 (inc) to 20.3.16 (exc) |
| angular | angular | From 21.0.0 (inc) to 21.0.7 (exc) |
| angular | angular | 21.1.0 |
| angular | angular | 21.1.0 |
| angular | angular | 21.1.0 |
| angular | angular | 21.1.0 |
| angular | angular | 21.1.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-79 | The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. |