CVE-2025-66412
HIGH 8.5CVSS 4.0Angular Stored XSS Vulnerability via SVG Animation, SVG URL and MathML Attributes
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.
- Published
- 1 Dec 2025
- Last modified
- 18 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-v4hv-rgfq-gp49
- Sources
- NVDJSONOSV GHSA-v4hv-rgfq-gp49JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.5 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/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 |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | angular | angularcpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:* |
<= 18.2.14 | |
| NVD | angular | angularcpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:* |
>= 19.0.0, < 19.2.17 | 19.2.17 |
| NVD | angular | angularcpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:* |
>= 20.0.0, < 20.3.15 | 20.3.15 |
| NVD | angular | angularcpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:* |
>= 21.0.0, < 21.0.2 | 21.0.2 |
| OSV | npm | @angular/compiler | >= 21.0.0-next.0, < 21.0.2 | 21.0.2 |
| OSV | npm | @angular/compiler | >= 20.0.0-next.0, < 20.3.15 | 20.3.15 |
| OSV | npm | @angular/compiler | >= 19.0.0-next.0, < 19.2.17 | 19.2.17 |
| OSV | npm | @angular/compiler | <= 18.2.14 |
References
- https://github.com/angular/angular/commit/1c6b0704fb63d051fab8acff84d076abfbc4893a · Patch, WEB
- https://github.com/angular/angular/security/advisories/GHSA-v4hv-rgfq-gp49 · Third Party Advisory, WEB
- https://cert-portal.siemens.com/productcert/html/ssa-253495.html · WEB
- https://cert-portal.siemens.com/productcert/html/ssa-485750.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-66412 · ADVISORY
- https://github.com/angular/angular · PACKAGE
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 1 Dec 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 2 Dec 2025)