CVE-2026-69151

Angular i18n: Cross-Site Scripting (XSS) via event-handler attributes

Published Aug 3, 2026 CVSS 4.0 · 7.6 High EPSS < 1% KEV · Not listed
Description
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 20.3.27, 21.2.19, and 22.0.1, the Angular compiler i18n pipeline permits i18n-onerror and other i18n-on event-handler attributes, allowing a lower-trust translation file to replace a static handler with executable JavaScript. This issue is fixed in versions 20.3.27, 21.2.19, and 22.0.1.

Analysis

AI-generated

Technical impact

The vulnerability lies within Angular’s compiler i18n pipeline, which prior to the specified releases incorrectly permits i18n‑onerror and other event‑handler attributes in translation files to be interpreted as executable JavaScript. This flaw enables a translation file from a lower‑trust source to inject malicious code that runs when the application renders translated content. The result is classic Cross‑Site Scripting that can compromise user data, allow session hijacking, and facilitate further browser‑based attacks.

Affected Systems

Angular compiler (@angular:compiler), Angular core (@angular:core), and Angular framework (angular:angular) packages that are older than versions 20.3.27, 21.2.19, and 22.0.1 respectively. The issue is fixed in those releases and all later versions, so upgrading removes the attack surface.

Risk and Exploitability

The CVSS score of 7.6 denotes a high severity vulnerability. EPSS for this flaw is not available, so the exploitation probability cannot be quantified, but because the attack relies on malicious translation files, the risk is driven by the integrity of the translation supply chain. The vulnerability is not listed in the CISA KEV catalog, yet the potential for XSS persists until the affected packages are updated. Prompt patching is recommended to mitigate the risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade @angular:compiler, @angular:core, and angular:angular to version 20.3.27, 21.2.19, or 22.0.1 and later
  • Ensure that all i18n translation files come from trusted, signed sources and validate them before inclusion
  • Apply a strict Content‑Security Policy that restricts inline script execution and event attribute handlers

Generated by OpenCVE AI on August 4, 2026 at 10:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-jj27-h5hq-8x99 Angular i18n: Cross-Site Scripting (XSS) via event-handler attributes
History
Type Values Removed Values Added
CPEs cpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:*
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N'}

cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Type Values Removed Values Added
First Time appeared @angular
@angular core
Angular
Angular angular
Angular compiler
Vendors & Products @angular
@angular core
Angular
Angular angular
Angular compiler
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N'}

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 20.3.27, 21.2.19, and 22.0.1, the Angular compiler i18n pipeline permits i18n-onerror and other i18n-on event-handler attributes, allowing a lower-trust translation file to replace a static handler with executable JavaScript. This issue is fixed in versions 20.3.27, 21.2.19, and 22.0.1.
Title Angular i18n: Cross-Site Scripting (XSS) via event-handler attributes
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 7.6, 'vector': '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'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 3, 2026, 9:19 PM
Reserved
Aug 3, 2026, 3:47 PM
Status
Analyzed
Published
Aug 3, 2026, 5:16 PM
Modified
Aug 11, 2026, 6:19 PM
Severity
Important
Public date
Aug 3, 2026, 4:23 PM