Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @angular/core
  4. ›
  5. CVE-2026-69151

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

August 3, 2026

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

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

The following example illustrates a vulnerable pattern:

<img src="foo.jpg" onerror="void 0" i18n-onerror />

References

  • github.com/advisories/GHSA-jj27-h5hq-8x99
  • github.com/angular/angular/commit/417a4071a776464d549509ed3aec121dbd2fda5e
  • github.com/angular/angular/commit/6c41f5ca01c0ae045fc7d929b72853a11eb55865
  • github.com/angular/angular/pull/68821
  • github.com/angular/angular/pull/69306
  • github.com/angular/angular/security/advisories/GHSA-jj27-h5hq-8x99
  • nvd.nist.gov/vuln/detail/CVE-2026-69151

Code Behaviors & Features

Detect and mitigate CVE-2026-69151 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 19.2.25, all versions starting from 20.0.0-next.0 before 20.3.27, all versions starting from 21.0.0-next.0 before 21.2.19, all versions starting from 22.0.0-next.0 before 22.0.1

Fixed versions

  • 20.3.27
  • 21.2.19
  • 22.0.1

Solution

Upgrade to versions 20.3.27, 21.2.19, 22.0.1 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/@angular/core/CVE-2026-69151.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:02 +0000.