Intel

AIKIDO-2026-10947

@angular/compiler-cli is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Yesterday

59

Medium Risk

This Affects:

JS@angular/compiler-cli
19.0.0 - 19.2.21
Fixed in 19.2.22
20.0.0 - 20.3.19
Fixed in 20.3.20
21.0.0 - 21.2.12
Fixed in 21.2.13
Are you affected? Scan for Free

TL;DR

Angular template type checking did not consistently apply DOM security schema validation to bound on* attributes in templates and host bindings. Applications could compile bindings to inline event-handler attributes that become XSS vectors when bound data is attacker-influenced. The fix surfaces compile-time errors for disallowed on* attribute and host bindings.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@angular/compiler-cli is vulnerable to Cross-site Scripting (XSS) in versions 21.0.0 - 21.2.12, 20.0.0 - 20.3.19 and 19.0.0 - 19.2.21.

How to fix this

Upgrade the @angular/compiler-cli and/or the @angular/compiler library to the patch version.