# CVE-2026-27970: Angular i18n vulnerable to Cross-Site Scripting (XSS)

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.6
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.65% (percentile 46, 2026-11-28)
- **CWE:** CWE-79
- **Aliases:** GHSA-prjf-86w9-mfqv
- **Published:** 2026-02-26T02:03:43.811Z
- **Modified:** 2026-09-10T03:50:59.526Z

## 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

## 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

- npm `@angular/core`: affected \>= 21.2.0-next.0, \< 21.2.0; fixed 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)

## 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).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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-28).

### 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.

## References

- vendor: <https://github.com/angular/angular/security/advisories/GHSA-prjf-86w9-mfqv>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-27970>
- patch: <https://github.com/angular/angular/pull/67183>
- patch: <https://github.com/angular/angular/commit/306f367899dfc2e04238fecd3455547b5d54075d>
- patch: <https://github.com/angular/angular/commit/7d58b798c626bb0e4e5f89ca8affdce4f352b232>
- patch: <https://github.com/angular/angular/commit/b85830953281ff3a1a77bbfe69019d352d509c93>
- other: <https://access.redhat.com/security/cve/CVE-2026-27970>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2442934>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27970.json>
- other: <https://angular.dev/best-practices/security#enforcing-trusted-types>
- other: <https://developer.mozilla.org/en-US/docs/Web/API/Trusted_Types_API>
- other: <https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP>
- other: <https://developer.mozilla.org/en-US/docs/Web/Security/Attacks/XSS>
- other: <https://github.com/angular/angular>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-27970>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-prjf-86w9-mfqv> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-27970> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-27970>
