Intel

AIKIDO-2026-10945

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

The Angular runtime allows template and host bindings to attr.on* event-handler attributes to bypass production-mode validation and write attacker-controlled inline handlers into the DOM. When a victim clicks the affected element, the browser executes the injected JavaScript in the application origin. The fix enforces runtime rejection of on* attribute bindings regardless of build mode.

Who does this affect?

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

Background info

@angular/core 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/core library to the patch version.