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

CVE-2026-32635: Angular vulnerable to XSS in i18n attribute bindings

March 13, 2026 (updated May 6, 2026)

A Cross-Site Scripting (XSS) vulnerability has been identified in the Angular runtime and compiler. It occurs when the application uses a security-sensitive attribute (for example href on an anchor tag) together with Angular’s ability to internationalize attributes. Enabling internationalization for the sensitive attribute by adding i18n-<attribute> name bypasses Angular’s built-in sanitization mechanism, which when combined with a data binding to untrusted user-generated data can allow an attacker to inject a malicious script.

The following example illustrates the issue:

<a href="{{maliciousUrl}}" i18n-href>Click me</a>

The following attributes have been confirmed to be vulnerable:

  • action
  • background
  • cite
  • codebase
  • data
  • formaction
  • href
  • itemtype
  • longdesc
  • poster
  • src
  • xlink:href

References

  • github.com/advisories/GHSA-g93w-mfhg-p222
  • github.com/angular/angular/commit/224e60ecb1b90115baa702f1c06edc1d64d86187
  • github.com/angular/angular/commit/78dea55351fb305b33a919c43a6b363137eca166
  • github.com/angular/angular/commit/8630319f74c9575a21693d875cc7d5252516146d
  • github.com/angular/angular/commit/ed2d324f9cc12aab6cfa0569ef10b73243a62c65
  • github.com/angular/angular/pull/67541
  • github.com/angular/angular/pull/67561
  • github.com/angular/angular/security/advisories/GHSA-g93w-mfhg-p222
  • nvd.nist.gov/vuln/detail/CVE-2026-32635

Code Behaviors & Features

Detect and mitigate CVE-2026-32635 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 starting from 17.0.0-next.0 up to 18.2.14, all versions starting from 19.0.0-next.0 before 19.2.20, all versions starting from 20.0.0-next.0.0.0 before 20.3.18, all versions starting from 21.0.0-next.0 before 21.2.4, all versions starting from 22.0.0-next.0 before 22.0.0-next.3

Fixed versions

  • 19.2.20
  • 20.3.18
  • 21.2.4
  • 22.0.0-next.3

Solution

Upgrade to versions 19.2.20, 20.3.18, 21.2.4, 22.0.0-next.3 or above.

Impact 9 CRITICAL

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

Learn more about CVSS

Weakness

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

Source file

npm/@angular/compiler/CVE-2026-32635.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Fri, 30 Oct 2026 12:15:42 +0000.