Vulnerability · Published Jan 10, 2026 · Assigned by GitHub_M

CVE-2026-22610Angular has XSS Vulnerability via Unsanitized SVG Script Attributes

High 8.5

In plain English

A high-severity cross-site scripting in angular from angular. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.5High
Exploit odds (30 days)0.4%top 61.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12angular.jsno fix listedDEBIAN-CVE-2026-22610
Debian:13angular.jsno fix listedDEBIAN-CVE-2026-22610
Debian:14angular.jsno fix listedDEBIAN-CVE-2026-22610
Ubuntu:22.04:LTSangular.jsno fix listedUBUNTU-CVE-2026-22610
Ubuntu:24.04:LTSangular.jsno fix listedUBUNTU-CVE-2026-22610
Ubuntu:25.10angular.jsno fix listedUBUNTU-CVE-2026-22610
Ubuntu:26.04:LTSangular.jsno fix listedUBUNTU-CVE-2026-22610
Ubuntu:26.10angular.jsno fix listedUBUNTU-CVE-2026-22610
npm@angular/compiler21.1.0-rc.0GHSA-jrmj-c5cx-3cw6
npm@angular/compiler21.0.7GHSA-jrmj-c5cx-3cw6
npm@angular/compiler20.3.16GHSA-jrmj-c5cx-3cw6
npm@angular/compiler19.2.18GHSA-jrmj-c5cx-3cw6
npm@angular/compilerno fix listedGHSA-jrmj-c5cx-3cw6
npm@angular/coreno fix listedGHSA-jrmj-c5cx-3cw6
npm@angular/core19.2.18GHSA-jrmj-c5cx-3cw6
npm@angular/core20.3.16GHSA-jrmj-c5cx-3cw6
npm@angular/core21.0.7GHSA-jrmj-c5cx-3cw6
npm@angular/core21.1.0-rc.0GHSA-jrmj-c5cx-3cw6

Affected products (as reported)

VendorProductVersions
angular angular >= 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

Weakness: CWE-79 · Vector: 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

References