Description

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.

Severity (CVSS)

Base score7.6
SeverityHigh
VersionCVSS 4.0
VectorCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Provided byCNA

Weaknesses

  • CWE-79 — CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Affected products

VendorProductVersions
angularangular>= 22.0.0-next.0, < 22.0.1; >= 21.0.0-next.0, < 21.2.19; < 20.3.27
@angularcompiler>= 22.0.0-next.0, < 22.0.1; >= 21.0.0-next.0, < 21.2.19; < 20.3.27
@angularcore>= 22.0.0-next.0, < 22.0.1; >= 21.0.0-next.0, < 21.2.19; < 20.3.27

References

Authoritative sources

This page is a snapshot. For the latest enrichment and updates, view the record on CVE.org or the NVD.

Generated from the official CVE List on 04 Aug 2026 07:02 UTC.