CVE-2026-27970
Angular i18n vulnerable to Cross-Site Scripting (XSS)
Also known as GHSA-prjf-86w9-mfqv
Mitigation
- Upgrade @angular/core to one of 21.2.0, 21.1.6, 20.3.17, 19.2.19 (or later in the same release line).
Who should check
- Projects that depend on npm package @angular/core (>= 21.2.0-next.0, < 21.2.0)
- Anyone running angular >= 21.2.0-next.0, < 21.2.0; >= 21.0.0-next.0, < 21.1.6; >= 20.0.0-next.0, < 20.3.17; >= 19.0.0-next.0, < 19.2.19; <= 18.2.14
Vulnerability facts
- Affected
- @angular/core >= 21.2.0-next.0, < 21.2.0
- Fixed in
- 21.2.0, 21.1.6, 20.3.17, 19.2.19
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.6 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: Passive
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.65% chance of exploitation in 30 days (percentile 46, 2026-11-26)
- CWE
- CWE-79
- Modified
Description
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Versions prior to 21.2.0, 21.1.16, 20.3.17, and 19.2.19 have a cross-Site scripting vulnerability 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. 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 credential exfiltration and/or page vandalism. Several preconditions apply to the attack. The attacker must compromise the translation file (xliff, xtb, etc.). Unlike most XSS vulnerabilities, this issue is not exploitable by arbitrary users. An attacker must first compromise an application's translation file before they can escalate privileges into the Angular application client. The victim application must use Angular i18n, use one or more ICU messages, render an ICU message, and not defend against XSS via a safe content security policy. Versions 21.2.0, 21.1.6, 20.3.17, and 19.2.19 patch the issue. Until the patch is applied, developers should consider reviewing and verifying translated content received from untrusted third parties before incorporating it in an Angular application, enabling strict CSP controls to block unauthorized JavaScript from executing on the page, and enabling Trusted Types to enforce proper HTML sanitization.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm @angular/core | >= 21.2.0-next.0, < 21.2.0 | 21.2.0, 21.1.6, 20.3.17, 19.2.19 | osv |
| angular | >= 21.2.0-next.0, < 21.2.0; >= 21.0.0-next.0, < 21.1.6; >= 20.0.0-next.0, < 20.3.17; >= 19.0.0-next.0, < 19.2.19; <= 18.2.14 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-27970. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-27970.md Affected: @angular/core >= 21.2.0-next.0, < 21.2.0 Fixed in: 21.2.0, 21.1.6, 20.3.17, 19.2.19 Steps: 1. Search this machine and project for @angular/core (npm), angular: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Other
- https://access.redhat.com/security/cve/CVE-2026-27970
- https://bugzilla.redhat.com/show_bug.cgi?id=2442934
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27970.json
- https://angular.dev/best-practices/security#enforcing-trusted-types
- https://developer.mozilla.org/en-US/docs/Web/API/Trusted_Types_API
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP
- https://developer.mozilla.org/en-US/docs/Web/Security/Attacks/XSS
- https://github.com/angular/angular
FAQ
Is CVE-2026-27970 being exploited?
There is no confirmed exploitation: CVE-2026-27970 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.65% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-27970?
High: CVSS 7.6 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-27970?
@angular/core >= 21.2.0-next.0, < 21.2.0.
Is there a fix for CVE-2026-27970?
Yes. Fixed in 21.2.0, 21.1.6, 20.3.17, 19.2.19. Upgrade @angular/core to one of 21.2.0, 21.1.6, 20.3.17, 19.2.19 (or later in the same release line).
How do I check if I'm affected by CVE-2026-27970?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.