Vulnerability · Published Dec 1, 2025 · Assigned by GitHub_M
CVE-2025-66412Angular Stored XSS Vulnerability via SVG Animation, SVG URL and MathML Attributes
High 8.5
In plain English
A high-severity cross-site scripting in angular from angular. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | angular.js | no fix listed | DEBIAN-CVE-2025-66412 |
| Debian:13 | angular.js | no fix listed | DEBIAN-CVE-2025-66412 |
| Debian:14 | angular.js | no fix listed | DEBIAN-CVE-2025-66412 |
| Ubuntu:22.04:LTS | angular.js | no fix listed | UBUNTU-CVE-2025-66412 |
| Ubuntu:24.04:LTS | angular.js | no fix listed | UBUNTU-CVE-2025-66412 |
| Ubuntu:25.10 | angular.js | no fix listed | UBUNTU-CVE-2025-66412 |
| Ubuntu:26.04:LTS | angular.js | no fix listed | UBUNTU-CVE-2025-66412 |
| Ubuntu:26.10 | angular.js | no fix listed | UBUNTU-CVE-2025-66412 |
| npm | @angular/compiler | no fix listed | GHSA-v4hv-rgfq-gp49 |
| npm | @angular/compiler | 19.2.17 | GHSA-v4hv-rgfq-gp49 |
| npm | @angular/compiler | 20.3.15 | GHSA-v4hv-rgfq-gp49 |
| npm | @angular/compiler | 21.0.2 | GHSA-v4hv-rgfq-gp49 |
Affected products (as reported)
Weakness: CWE-79 · Vector: 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
References
- https://github.com/angular/angular/security/advisories/GHSA-v4hv-rgfq-gp49 x_refsource_CONFIRM
- https://github.com/angular/angular/commit/1c6b0704fb63d051fab8acff84d076abfbc4893a x_refsource_MISC
- https://cert-portal.siemens.com/productcert/html/ssa-485750.html
- https://cert-portal.siemens.com/productcert/html/ssa-253495.html