Intel

AIKIDO-2026-10836

@angular/compiler 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

65

Medium Risk

This Affects:

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

TL;DR

Host bindings could still declare dangerous event-attribute shapes such as names beginning with on or attr.on when the compiler only relied on older checks. The compiler now walks parsed host properties and records parse errors for those patterns, steering authors toward real event bindings instead of DOM event-handler attributes. That closes a class of injection where hostile host metadata could reach the DOM as executable handler attributes in production builds.

Who does this affect?

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

Background info

@angular/compiler is vulnerable to Cross-site Scripting (XSS) in versions 21.0.0 - 21.2.12.

How to fix this

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