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

High 8.5 Published Updated

Attackers can execute arbitrary scripts via unsanitized SVG script attributes in Angular applications, requiring an upgrade to patched versions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-22610?

CVE-2026-22610 is a high-severity cross-site scripting vulnerability in angular, published on 10 Jan 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

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.

Weakness: CWE-79

Which versions are affected by CVE-2026-22610?

20 open source packages ship an affected version, including @angular/compiler and @angular/core. It affects 1 product.

PackageAffectedFixed in
@angular/compiler npmAll versions to 18.2.14None
@angular/compiler npmAll versions to 18.2.14None
@angular/compiler npmFrom 19.0.0-next.019.2.18
@angular/compiler npmFrom 19.0.0-next.019.2.18
@angular/compiler npmFrom 20.0.0-next.020.3.16
@angular/compiler npmFrom 20.0.0-next.020.3.16
14 more packages
@angular/compiler npmFrom 21.0.0-next.021.0.7
@angular/compiler npmFrom 21.0.0-next.021.0.7
@angular/compiler npmFrom 21.1.0-next.021.1.0-rc.0
@angular/compiler npmFrom 21.1.0-next.021.1.0-rc.0
@angular/core npmAll versions to 18.2.14None
@angular/core npmAll versions to 18.2.14None
@angular/core npmFrom 19.0.0-next.019.2.18
@angular/core npmFrom 19.0.0-next.019.2.18
@angular/core npmFrom 20.0.0-next.020.3.16
@angular/core npmFrom 20.0.0-next.020.3.16
@angular/core npmFrom 21.0.0-next.021.0.7
@angular/core npmFrom 21.0.0-next.021.0.7
@angular/core npmFrom 21.1.0-next.021.1.0-rc.0
@angular/core npmFrom 21.1.0-next.021.1.0-rc.0

Products include Angular Angular.

How do I fix CVE-2026-22610?

Upgrade @angular/compiler to a fixed version for your release line: 19.2.18, 20.3.16, 21.0.7 or 21.1.0-rc.0.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-22610 being exploited?

There is no known exploitation of CVE-2026-22610 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as CLSA-2026-1774657389, CLSA-2026-1775176141, CLSA-2026-1775176145, CLSA-2026-1775176149, CLSA-2026-1775176156, CLSA-2026-1775176158 and 186 more.

Is CVE-2026-22610 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free