Angular
CVE-2026-27970
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCompromise third-party translation file
-
DeliveryInject malicious HTML in ICU message
-
ExploitApp built/served with poisoned translation
-
ExecutionVictim loads page rendering ICU message
-
PersistScript executes in app origin
-
ImpactExfiltrate credentials or deface page
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the attacker first compromise the application's translation file (xliff, xtb, or similar) - this is the gating precondition and the reason it is not exploitable by arbitrary end users. The victim application must additionally (1) use Angular i18n, (2) define one or more ICU messages, (3) actually render at least one such ICU message, and (4) lack a safe Content Security Policy and Trusted Types enforcement that would otherwise block injected JavaScript. Limiting factors: the attack needs control over the translation supply chain rather than runtime user input (CVSS AT:P), depends on a victim loading the affected page (UI:P), affects only apps using the i18n/ICU feature set, and is neutralized by a strict CSP - so default-hardened deployments with in-house translations face minimal exposure. |
| Impact | Signals are largely consistent and point to a real-but-conditional risk rather than a fire-drill. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H, base 7.6 High) encodes the key nuance via AT:P (a present attack requirement) and UI:P (passive user interaction): network-reachable and high-impact on confidentiality and integrity, but gated by a precondition. EPSS of 0.04% (13th percentile) and the absence of CISA KEV listing or any public POC indicate exploitation is neither widespread nor opportunistic. The decisive limiting factor - the attacker must already control the translation file - means this behaves like a targeted supply-chain XSS, not a mass-exploitable internet bug. Net: prioritize patching for apps that consume third-party translations, but it does not warrant emergency response for apps with trusted/in-house translation pipelines and a strong CSP. |
| Exploit ScenarioDerived | An organization outsources Angular i18n translations to an external contractor; an attacker who compromises that contractor (or the translation file in transit) inserts an ICU message containing malicious HTML/JavaScript. When the application is built with the poisoned xliff/xtb file and a victim loads a page that renders that ICU message, the script executes in the app's origin and can exfiltrate session tokens or deface the page. No public POC is identified at time of analysis, and exploitation hinges on the attacker first owning the translation artifact. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv5 – Jun 30, 2026
Cross-site scripting in Angular's internationalization (i18n) pipeline allows attacker-controlled JavaScript to execute in the application origin when a poisoned translation file is merged into an app. The flaw affects Angular versions before 21.2.0, 21.1.16, 20.3.17, and 19.2.19, where HTML inside ICU (International Components for Unicode) messages from translated content was not sanitized before rendering. Exploitation is not open to arbitrary users - it requires first compromising a translation file (xliff, xtb, etc.), so this is effectively a supply-chain/third-party-translation risk; EPSS is very low (0.04%, 13th percentile) and there is no public exploit identified at time of analysis.
Earlier versions of this analysis (4)
Cross-site scripting in Angular's internationalization (i18n) pipeline lets attacker-controlled JavaScript run in the application origin when a malicious ICU translation message is rendered. Affected are Angular applications using i18n with ICU messages on versions before 21.2.0, 21.1.16, 20.3.17, and 19.2.19, where HTML from translated content was not sanitized. Exploitation is unusual for XSS in that it requires compromising the translation file (xliff/xtb) rather than crafting input as a normal user; EPSS is very low (0.04%), there is no public exploit identified at time of analysis, and the issue is not in CISA KEV.
Cross-site scripting in the Angular framework's internationalization (i18n) pipeline allows attacker-controlled JavaScript to execute in the application origin when a poisoned translation is rendered. Affected builds are Angular versions prior to 21.2.0, 21.1.16, 20.3.17, and 19.2.19 that use i18n with ICU messages, where HTML inside translated ICU content was not sanitized before rendering. This is a supply-chain-style XSS: the attacker must first compromise a translation file (xliff, xtb, etc.) supplied by a third-party translation contractor, so it is not exploitable by arbitrary end users. EPSS is low (0.04%, 13th percentile) and there is no public exploit identified at time of analysis.
Stored cross-site scripting in the Angular i18n (internationalization) pipeline allows attacker-controlled JavaScript to execute in the application origin when a poisoned translation file is merged into an app that renders ICU messages. HTML embedded in translated ICU content was not sanitized, so a malicious or compromised translation supplier (xliff/xtb file) can inject script that runs for end users, enabling credential theft or page defacement. There is no public exploit identified at time of analysis and EPSS is very low (0.04%, 13th percentile), consistent with a supply-chain prerequisite rather than mass-exploitable XSS; a vendor patch is available across all maintained release lines.
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. [CVSS 6.1 MEDIUM]
RemediationAI
Upgrade to a fixed Angular release for your line: Vendor-released patch: 21.2.0, 21.1.16, 20.3.17, or 19.2.19, delivered via commits 306f3678, 7d58b798, and b85830953 and pull request https://github.com/angular/angular/pull/67183 (advisory: https://github.com/angular/angular/security/advisories/GHSA-prjf-86w9-mfqv). Until you can patch, the most direct compensating control is to review and verify translated content received from untrusted third-party contractors before merging it into the build - this directly addresses the compromised-translation precondition but adds manual overhead to the localization workflow. Additionally, deploy a strict Content Security Policy (without 'unsafe-inline'/'unsafe-eval') to block injected script execution, accepting that a tight CSP may require refactoring inline handlers/styles, and enable Trusted Types to force HTML sanitization, which can break code paths that assign raw HTML and so should be tested before production rollout.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Angular is a TypeScript/JavaScript front-end framework whose i18n workflow extracts source-language messages, sends them to translators, then merges returned translations back into the build. ICU message format supports plural/select constructs and interpolated content; the vulnerable code path rendered HTML embedded in these translated ICU messages without passing it through Angular's DomSanitizer, the standard defense against CWE-79 (Improper Neutralization of Input During Web Page Generation, i.e. XSS). The affected component is the Angular package as distributed via npm (CPE cpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:*), specifically builds compiled with i18n that render at least one ICU message. Because the untrusted data enters through the translation artifact rather than runtime user input, the trust boundary is the translation supply chain rather than the end-user request.
Know when Angular gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
AC:H and UI:R because exploitation requires first compromising the translation supply chain and a victim rendering the message; PR:N as no app privileges are needed; C:H/I:H for origin-scoped script execution, A:N as availability is unaffected.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
8DescriptionCVE.org
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.
Executive ViewAI
Angular-based web applications may be vulnerable to cross-site scripting attacks through compromised translation files, potentially exposing users to malicious activity and data theft. Organizations relying on external translation management or distributed translation sources face the greatest risk. Although no public exploit is identified at time of analysis, the high severity rating and supply-chain nature of this vulnerability warrant prioritized patching for all affected customer-facing applications.
Apply vendor patch. Interim mitigations during deployment: restrict translation file sources to internal, vetted repositories; implement code signing or integrity verification on translation files before deployment; audit and minimize administrative access to translation file management systems.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Affected Products (CPE)CVE.org
Cross-site scripting via Angular's server-side rendering package (@angular/platform-server) allows arbitrary JavaScript
Cross-site scripting in Angular's server-side rendering engine (`@angular/platform-server`) allows arbitrary JavaScript
Server-Side Rendering in Angular's @angular/platform-server leaks server-side credentials to attacker-controlled origins
Stored XSS in the Angular Template Compiler (npm package @angular/compiler) allows an authenticated attacker who can per
Cross-site scripting in Angular's Template Compiler allows attackers to inject arbitrary JavaScript through unsanitized
An unauthenticated remote attacker can lock up an Angular server-side rendering process by submitting HTML that contains
Server-side request forgery in Angular's @angular/ssr package (all versions from 19.0.0-next.0 before 19.2.18, 20.0.0-ne
Command injection via untrusted Markdown rendering in the Angular Language Service VS Code extension (versions prior to
Arbitrary code execution in the Angular Language Service VS Code extension prior to 21.2.4 allows attackers to silently
Server-Side Request Forgery in Angular's @angular/platform-server (SSR) lets remote unauthenticated attackers hijack the
Heap exhaustion and CPU starvation in @angular/router under Angular Server-Side Rendering on Node.js allow unauthenticat
Denial of service in the npm package @angular/router when Server-Side Rendering (SSR) is enabled on Node.js allows an un
GHSA-prjf-86w9-mfqv
NVD
CVE.org
EPSS
Exploit-DB