Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-69151

Angular i18n: Cross-Site Scripting (XSS) via event-handler attributes
Back to all
CVE

CVE-2026-69151

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

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

Impact

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

  • Session Hijacking: Accessing session cookies, tokens, or sensitive user data.
  • Unauthorized Actions: Performing actions on behalf of the authenticated user.

Patched Versions

  • 22.0.1
  • 21.2.19
  • 20.3.27

Workarounds

Ensure that static event-handler attributes (e.g., onerroronclick) are never marked for internationalization (i18n-on*) in application templates, and ensure translation files are sourced from trusted origins.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
7.6
-
4.0
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
C
H
U
0
-
C
H
U
9.1
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Related Resources

No items found.

References

https://github.com/angular/angular/security/advisories/GHSA-jj27-h5hq-8x99, https://github.com/angular/angular/pull/68821, https://github.com/angular/angular/pull/69306, https://github.com/angular/angular/commit/417a4071a776464d549509ed3aec121dbd2fda5e, https://github.com/angular/angular/commit/6c41f5ca01c0ae045fc7d929b72853a11eb55865, https://github.com/angular/angular

Severity

9.1

CVSS Score
0
10

Basic Information

Base CVSS
9.1
EPSS Probability
0.00199%
EPSS Percentile
0.09657%
Introduced Version
22.0.0-next.0,21.0.0-next.0,20.0.0-next.6,19.0.0-next.2,20.0.0-next.0,16.0.0-next.5,14.0.0-next.15,13.1.0,13.0.0-next.10,7.1.0,6.1.0-beta.0,6.0.0-rc.0,6.0.0-beta.1,5.0.0-rc.0,5.0.0-beta.6,4.0.0-rc.4,4.0.0-rc.0,4.0.0-rc.3,2.0.0-rc.6,2.0.0-rc.5,2.0.0-rc.2,2.0.0-rc.0,2.0.0-beta.10
Fix Available
22.0.1,21.2.19,20.3.27

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading