CVE
CVE-2025-66412
CNA description
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages. Prior to 21.0.2, 20.3.15, and 19.2.17, A Stored Cross-Site Scripting (XSS) vulnerability has been identified in the Angular Template Compiler. It occurs because the compiler's internal security schema is incomplete, allowing attackers to bypass Angular's built-in security sanitization. Specifically, the schema fails to classify certain URL-holding attributes (e.g., those that could contain javascript: URLs) as requiring strict URL security, enabling the injection of malicious scripts. This vulnerability is fixed in 21.0.2, 20.3.15, and 19.2.17.
Affected versions
- @angular/compiler≥ 21.0.0-next.0, < 21.0.2Fixed in 21.0.2
- @angular/compiler≥ 20.0.0-next.0, < 20.3.15Fixed in 20.3.15
- @angular/compiler≥ 19.0.0-next.0, < 19.2.17Fixed in 19.2.17
- @angular/compiler≤ 18.2.14Affected up to 18.2.14 — see vendor advisory
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- github.com/angular/angular/commit/1c6b0704fb63d051fab8acff84d076abfbc4 · Patch
- github.com/angular/angular/security/advisories/GHSA-v4hv-rgfq-gp49 · Third Party Advisory
- github.com/advisories/GHSA-v4hv-rgfq-gp49 · Third Party Advisory
- osv.dev/vulnerability/GHSA-v4hv-rgfq-gp49 · Third Party Advisory
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.