CVE-2025-66412: Stored XSS in Angular Template Compiler
- Vendor
- Angular
CVE-2025-66412 is a stored cross-site scripting vulnerability in the Angular Template Compiler caused by an incomplete internal security schema. Certain SVG and MathML URL-bearing attributes are not classified as requiring URL sanitization, and SVG animation attributeName validation is insufficient. Attacker-controlled bindings can consequently bypass Angular's built-in sanitization and introduce executable JavaScript URLs. The vulnerability affects releases before the corresponding fixed versions in the Angular 19, 20, and 21 release lines: 19.2.17, 20.3.15, and 21.0.2.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation executes attacker-controlled JavaScript in the vulnerable application's origin. This can enable theft of script-accessible authentication tokens and sensitive data, session compromise, data exfiltration, and unauthorized actions using the victim's application privileges. The impact is browser-side script execution; server-side code execution is not established.
Mitigation
If you can’t patch tonight, do this now.
Until upgrading, prevent untrusted data from reaching affected SVG/MathML URL-bearing attribute bindings, including [attr.xlink:href]. Avoid attacker-controlled attributeName bindings on SVG animate, set, animateMotion, and animateTransform elements. Deploy a restrictive Content Security Policy that blocks JavaScript URL execution as defense in depth. For affected SIDIS Prime deployments, restrict network access using appropriate access controls; this does not replace correcting vulnerable bindings or applying the update.
Remediation
Patch, then assume compromise.
Upgrade @angular/compiler to 19.2.17, 20.3.15, or 21.0.2, or a later fixed release in the applicable release line. For Siemens SIDIS Prime deployments containing the affected component, upgrade SIDIS Prime to V4.0.800 or later using the vendor-supported product update rather than independently replacing bundled dependencies.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-66412 exploited in the wild?
- As of Oct 25, 2026, Mallory has no reports of CVE-2025-66412 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-66412?
- As of Oct 25, 2026, Mallory has found no public exploit for CVE-2025-66412.
- Is there a patch for CVE-2025-66412?
- Upgrade @angular/compiler to 19.2.17, 20.3.15, or 21.0.2, or a later fixed release in the applicable release line. For Siemens SIDIS Prime deployments containing the affected component, upgrade SIDIS Prime to V4.0.800 or later using the vendor-supported product update rather than independently replacing bundled dependencies.
- What products are affected by CVE-2025-66412?
- Angular.
- How severe is CVE-2025-66412?
- CVE-2025-66412 has a CVSS v4 score of 8.5 (High) and an EPSS score of 0.38% (33rd percentile) as of Oct 25, 2026.
Recent activity
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.