@angular/core
Affected
- introduced
21.2.0-next.0, fixed21.2.0(semver)
Fixed versions
21.2.0
Fix
- Fixed version
21.2.0npm install @angular/[email protected]
Advisory
Also known as: CVE-2026-27970
Angular i18n vulnerable to Cross-Site Scripting
A Cross-site Scripting (XSS) vulnerability has been identified in the Angular internationalization (i18n) pipeline. In ICU messages (International Components for Unicode), HTML from translated content was not properly sanitized and could execute arbitrary JavaScript.
Angular i18n typically involves three steps, extracting all messages from an application in the source language, sending the messages to be translated, and then merging their translations back into the final source code. Translations are frequently handled by contracts with specific partner companies, and involve sending the source messages to a separate contractor before receiving final translations for display to the end user.
If the returned translations have malicious content, it could be rendered into the application and execute arbitrary JavaScript.
Impact
When successfully exploited, this vulnerability allows for execution of attacker controlled JavaScript in the application origin. Depending on the nature of the application being exploited this could lead to:
Attach Preconditions
Patches
Workarounds
Until the patch is applied, developers should consider:
References
High Basis: The source's own band: HIGH
21.2.0-next.0, fixed 21.2.0 (semver)21.2.0
21.2.0npm install @angular/[email protected]21.0.0-next.0, fixed 21.1.6 (semver)21.1.6
21.1.6npm install @angular/[email protected]20.0.0-next.0, fixed 20.3.17 (semver)20.3.17
20.3.17npm install @angular/[email protected]19.0.0-next.0, fixed 19.2.19 (semver)19.2.19
19.2.19npm install @angular/[email protected]0, last affected 18.2.14 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0