CVE
CVE-2026-22610
CNA 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.
Affected versions
- @angular/core≥ 21.1.0-next.0, < 21.1.0-rc.0Fixed in 21.1.0-rc.0
- @angular/core≥ 21.0.0-next.0, < 21.0.7Fixed in 21.0.7
- @angular/core≥ 20.0.0-next.0, < 20.3.16Fixed in 20.3.16
- @angular/core≥ 19.0.0-next.0, < 19.2.18Fixed in 19.2.18
- @angular/core≤ 18.2.14Affected up to 18.2.14 — see vendor advisory
- @angular/compiler≥ 21.1.0-next.0, < 21.1.0-rc.0Fixed in 21.1.0-rc.0
- @angular/compiler≥ 21.0.0-next.0, < 21.0.7Fixed in 21.0.7
- @angular/compiler≥ 20.0.0-next.0, < 20.3.16Fixed in 20.3.16
- @angular/compiler≥ 19.0.0-next.0, < 19.2.18Fixed in 19.2.18
- @angular/compiler≤ 18.2.14Affected up to 18.2.14 — see vendor advisory
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- github.com/angular/angular/commit/91dc91bae4a1bbefc58bef6ef739d0e02ab4 · Patch
- github.com/angular/angular/security/advisories/GHSA-jrmj-c5cx-3cw6 · Mitigation, Vendor Advisory
- github.com/advisories/GHSA-jrmj-c5cx-3cw6 · Third Party Advisory
- osv.dev/vulnerability/GHSA-jrmj-c5cx-3cw6 · Third Party Advisory
- github.com/angular/angular/pull/66318 · Vendor Advisory
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.