CVE-2026-69151: Angular i18n Cross-Site Scripting Vulnerability
HIGHCVE-2026-69151 is a HIGH cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Angular i18n libraries in the npm ecosystem. The issue involves cross-site scripting (xss) via event-handler attributes. Remediation is available by upgrading affected packages to version 22.0.1, 21.2.19, 20.3.27.
CVE-2026-69151 at a Glance
How to Fix CVE-2026-69151
To remediate this vulnerability, upgrade all affected Angular i18n dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @angular/compiler@22.0.1
npm install @angular/compiler@21.2.19
npm install @angular/compiler@20.3.27
npm install @angular/compiler@Latest secure release
npm install @angular/core@22.0.1
npm install @angular/core@21.2.19
npm install @angular/core@20.3.27
npm install @angular/core@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @angular/compiler
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-69151, inspect your project dependencies using npm:
npm ls @angular/compiler
Analyze the terminal output to locate any version of Angular i18n in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 22.0.1), your application is affected.
Note: The npm ls @angular/compiler command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Angular i18n, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-69151 Affected Angular i18n Versions
8 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@angular/compiler
|
npm |
≥ 22.0.0-next.0
< 22.0.1
|
22.0.1
|
|
@angular/compiler
|
npm |
≥ 21.0.0-next.0
< 21.2.19
|
21.2.19
|
|
@angular/compiler
|
npm |
≥ 20.0.0-next.0
< 20.3.27
|
20.3.27
|
|
@angular/compiler
|
npm |
≤ 19.2.25
|
|
|
@angular/core
|
npm |
≥ 22.0.0-next.0
< 22.0.1
|
22.0.1
|
|
@angular/core
|
npm |
≥ 21.0.0-next.0
< 21.2.19
|
21.2.19
|
|
@angular/core
|
npm |
≥ 20.0.0-next.0
< 20.3.27
|
20.3.27
|
|
@angular/core
|
npm |
≤ 19.2.25
|
|
References
Frequently Asked Questions
What is CVE-2026-69151?
Which Angular i18n versions are affected?
What version fixes CVE-2026-69151?
Is @angular/compiler affected?
Is @angular/core affected?
What CWE is associated with CVE-2026-69151?
How can I check npm dependencies for CVE-2026-69151?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jj27-h5hq-8x99",
"modified" : "2026-08-03T16:23:40Z",
"published" : "2026-08-03T16:23:40Z",
"aliases" : [ "CVE-2026-69151" ],
"summary" : "Angular i18n: Cross-Site Scripting (XSS) via event-handler attributes",
"details" : "A Cross-Site Scripting (XSS) vulnerability has been identified in the Angular compiler's internationalization (i18n) pipeline. Although Angular disallows binding to event-handler attributes such as `onclick` and `onerror` through standard attribute validation (`validateAttribute()` / `validateProperty()`), the i18n metadata collection path allowed these same attribute names to be marked for translation using `i18n-on*` attributes (e.g., `i18n-onerror`).\n\nWhen exploited, a lower-trust translation file could replace a benign static handler such as `onerror=\"void 0\"` with arbitrary executable JavaScript in the localized build.\n\nThe following example illustrates a vulnerable pattern:\n```html\n<img src=\"foo.jpg\" onerror=\"void 0\" i18n-onerror />\n```\n\n### Impact\n\nWhen exploited, this vulnerability allows arbitrary JavaScript execution within the context of the vulnerable application's domain if an attacker can control or influence the translation files used during localization. This can lead to:\n- **Session Hijacking**: Accessing session cookies, tokens, or sensitive user data.\n- **Unauthorized Actions**: Performing actions on behalf of the authenticated user.\n\n### Patched Versions\n\n- 22.0.1\n- 21.2.19\n- 20.3.27\n\n### Workarounds\n\nEnsure that static event-handler attributes (e.g., `onerror`, `onclick`) are never marked for internationalization (`i18n-on*`) in application templates, and ensure translation files are sourced from trusted origins.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@angular/compiler"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "22.0.0-next.0"
}, {
"fixed" : "22.0.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@angular/compiler"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "21.0.0-next.0"
}, {
"fixed" : "21.2.19"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@angular/compiler"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "20.0.0-next.0"
}, {
"fixed" : "20.3.27"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@angular/compiler"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "19.2.25"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@angular/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "22.0.0-next.0"
}, {
"fixed" : "22.0.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@angular/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "21.0.0-next.0"
}, {
"fixed" : "21.2.19"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@angular/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "20.0.0-next.0"
}, {
"fixed" : "20.3.27"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@angular/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "19.2.25"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/angular/angular/security/advisories/GHSA-jj27-h5hq-8x99"
}, {
"type" : "WEB",
"url" : "https://github.com/angular/angular/pull/68821"
}, {
"type" : "WEB",
"url" : "https://github.com/angular/angular/pull/69306"
}, {
"type" : "WEB",
"url" : "https://github.com/angular/angular/commit/417a4071a776464d549509ed3aec121dbd2fda5e"
}, {
"type" : "WEB",
"url" : "https://github.com/angular/angular/commit/6c41f5ca01c0ae045fc7d929b72853a11eb55865"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/angular/angular"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-03T16:23:40Z",
"nvd_published_at" : null
}
}