{"id":"CVE-2025-66412","published":"2025-12-01T22:35:59Z","modified":"2026-06-02T13:00:31Z","title":"Angular Stored XSS Vulnerability via SVG Animation, SVG URL and MathML Attributes","vendor":"angular","product":"angular","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00441,"percentile":0.30199,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/angular/angular/security/advisories/GHSA-v4hv-rgfq-gp49","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/angular/angular/commit/1c6b0704fb63d051fab8acff84d076abfbc4893a","tags":["x_refsource_MISC"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-485750.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-253495.html","tags":[]}],"priority":{"score":12.0,"factors":[{"name":"EPSS percentile","points":6.04},{"name":"CVSS severity","points":5.95}]},"vendorSlug":"angular","affectedVersions":[{"vendor":"angular","product":"angular","versions":[">= 21.0.0-next.0 < 21.0.2",">= 20.0.0-next.0 < 20.3.15",">= 19.0.0-next.0 < 19.2.17","<= 18.2.14"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-12-02T14:12:58.051369Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@angular/compiler","vulnerableRanges":[">=21.0.0-next.0, <21.0.2",">=20.0.0-next.0, <20.3.15",">=19.0.0-next.0, <19.2.17","<=18.2.14"],"patched":["21.0.2","20.3.15","19.2.17"],"from":["GHSA-v4hv-rgfq-gp49"],"provenance":"source"}],"summary":{"text":"The Angular Template Compiler contains a stored cross-site scripting flaw caused by an incomplete internal security schema that fails to classify certain URL-holding attributes as requiring strict URL security, so Angular's built-in sanitization can be bypassed. An attacker with low privileges can inject malicious script that executes in users' browsers, but exploitation requires user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:40:59Z"},"euvd":{"id":"EUVD-2025-200118","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-angular-cve-2025-66412","children":[{"from":"CVE-2025-66412","to":"CVE-2026-22610","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@angular/compiler","fromFixed":"21.0.2","toFixed":"21.0.7","daysApart":40},{"kind":"version-step","provenance":"source","package":"npm:@angular/compiler","fromFixed":"20.3.15","toFixed":"20.3.16","daysApart":40},{"kind":"same-code","provenance":"machine","files":["packages/compiler/src/schema/dom_security_schema.ts","packages/core/src/sanitization/sanitization.ts"],"commits":["https://github.com/angular/angular/commit/1c6b0704fb63d051fab8acff84d076abfbc4893a","https://github.com/angular/angular/commit/91dc91bae4a1bbefc58bef6ef739d0e02ab44d56"],"basis":"shared function","functions":["SECURITY_SCHEMA"]},{"kind":"similar","provenance":"machine","score":0.4,"basis":"same product + CWE + description similarity"}]},{"from":"CVE-2025-66412","to":"CVE-2026-54265","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.ts"],"commits":["https://github.com/angular/angular/commit/1c6b0704fb63d051fab8acff84d076abfbc4893a","https://github.com/angular/angular/commit/3c70270c96677c0dd33585f2afe8e187113e5fb4"],"basis":"shared function","functions":["resolveSanitizers"]}]},{"from":"CVE-2025-66412","to":"CVE-2026-88057","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/compiler/src/schema/dom_security_schema.ts","packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.ts","packages/core/src/sanitization/sanitization.ts"],"commits":["https://github.com/angular/angular/commit/1c6b0704fb63d051fab8acff84d076abfbc4893a","https://github.com/angular/angular/commit/2f96c8020f85ccb715a76de4b79a0c680c2c7264","https://github.com/angular/angular/commit/6afe6fa781c2f0931f0aedd729b9884a8fe212ee"],"basis":"shared function","functions":["SECURITY_SCHEMA","getSanitizer","resolveSanitizers"]}]}],"packageHistory":[{"cve":"CVE-2025-66412","published":"2025-12-01","fixed":"21.0.2","kev":false},{"cve":"CVE-2026-22610","published":"2026-01-10","fixed":"21.1.0-rc.0","kev":false},{"cve":"CVE-2026-50557","published":"2026-06-22","fixed":"22.0.0-rc.2","kev":false},{"cve":"CVE-2026-32635","published":"2026-03-13","fixed":"22.0.0-next.3","kev":false}],"package":"npm:@angular/compiler"}}