Angular i18n: Cross-Site Scripting (XSS) via event-handler attributes
angular · @angular compiler · @angular core
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @angular/compiler npm |
|
|
| @angular/core |
angular · @angular compiler · @angular core
| Product | Affected | Fixed in |
|---|---|---|
| @angular/compiler npm |
|
|
| @angular/core |
The Angular compiler i18n pipeline permits event-handler attributes such as i18n-onerror in lower-trust translation files. If such a file is used during compilation, an attacker who controls it can replace a static handler with executable JavaScript. The input does not specify authentication requirements or user interaction.
Teams using affected npm versions of @angular/compiler or @angular/core, including the listed prerelease ranges and versions through 19.2.25, should check their dependencies.
|
|
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 20.3.27, 21.2.19, and 22.0.1, the Angular compiler i18n pipeline permits i18n-onerror and other i18n-on event-handler attributes, allowing a lower-trust translation file to replace a static handler with executable JavaScript. This issue is fixed in versions 20.3.27, 21.2.19, and 22.0.1.
From the CVE record · GitHub_M