Angular
Angular i18n: Cross-Site Scripting (XSS) via event-handler attributes
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 22.0.0-next.0, < 22.0.1
- >= 21.0.0-next.0, < 21.2.19
- < 20.3.27
Fixed in 22.0.1, 21.2.19, 20.3.27
- >= 22.0.0-next.0, < 22.0.1
- >= 21.0.0-next.0, < 21.2.19
- < 20.3.27
Fixed in 22.0.1, 21.2.19, 20.3.27
- >= 22.0.0-next.0, < 22.0.1
- >= 21.0.0-next.0, < 21.2.19
- < 20.3.27
Fixed in 22.0.1, 21.2.19, 20.3.27
Mitigation
Upgrade angular to 22.0.1 or 21.2.19 or 20.3.27 or later.
Upgrade compiler to 22.0.1 or 21.2.19 or 20.3.27 or later.
Upgrade core to 22.0.1 or 21.2.19 or 20.3.27 or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.