Intel

AIKIDO-2026-10828

@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 May 19, 2026

68

Medium Risk

This Affects:

JS@angular/compiler-cli
21.0.0 - 21.2.12
Fixed in 21.2.13
Are you affected? Scan for Free

TL;DR

Template type checking against the DOM schema did not consistently reject dangerous event-property bindings such as onclick on plain elements. The schema checker now validates property names through the registry first and surfaces diagnostics instead of letting those bindings compile. That blocks template-level paths that reuse user-influenceable values on on-prefixed DOM properties outside of Angular’s event binding syntax.

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.

How to fix this

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