{"id":"CVE-2026-22610","published":"2026-01-10T03:35:40Z","modified":"2026-06-02T13:00:45Z","title":"Angular has XSS Vulnerability via Unsanitized SVG Script 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 versions 19.2.18, 20.3.16, 21.0.7, and 21.1.0-rc.0, a cross-site scripting (XSS) vulnerability has been identified in the Angular Template Compiler. The vulnerability exists because Angular’s internal sanitization schema fails to recognize the href and xlink:href attributes of SVG <script> elements as a Resource URL context. This issue has been patched in versions 19.2.18, 20.3.16, 21.0.7, and 21.1.0-rc.0.","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.0039,"percentile":0.24724,"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-jrmj-c5cx-3cw6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/angular/angular/pull/66318","tags":["x_refsource_MISC"]},{"url":"https://github.com/angular/angular/commit/91dc91bae4a1bbefc58bef6ef739d0e02ab44d56","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":15.9,"factors":[{"name":"EPSS percentile","points":4.94},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.95}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-01-18","earliestUrl":"https://github.com/ashizZz/CVE-2026-22610","repos":[{"name":"ashizZz/CVE-2026-22610","url":"https://github.com/ashizZz/CVE-2026-22610","stars":1,"created":"2026-01-18"}]},"first":{"date":"2026-01-18","source":"PoC-in-GitHub","url":"https://github.com/ashizZz/CVE-2026-22610"},"provenance":"source"},"vendorSlug":"angular","affectedVersions":[{"vendor":"angular","product":"angular","versions":[">= 21.1.0-next.0, < 21.1.0-rc.0",">= 21.0.0-next.0, < 21.0.7",">= 20.0.0-next.0, < 20.3.16","< 19.2.18"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-01-13T04:55:49.721211Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@angular/compiler","vulnerableRanges":[">=21.1.0-next.0, <21.1.0-rc.0",">=21.0.0-next.0, <21.0.7",">=20.0.0-next.0, <20.3.16",">=19.0.0-next.0, <19.2.18","<=18.2.14"],"patched":["21.1.0-rc.0","21.0.7","20.3.16","19.2.18"],"from":["GHSA-jrmj-c5cx-3cw6"],"provenance":"source"},{"ecosystem":"npm","package":"@angular/core","vulnerableRanges":[">=21.1.0-next.0, <21.1.0-rc.0",">=21.0.0-next.0, <21.0.7",">=20.0.0-next.0, <20.3.16",">=19.0.0-next.0, <19.2.18","<=18.2.14"],"patched":["21.1.0-rc.0","21.0.7","20.3.16","19.2.18"],"from":["GHSA-jrmj-c5cx-3cw6"],"provenance":"source"}],"summary":{"text":"The Angular Template Compiler in the Angular framework contains a cross-site scripting flaw: its sanitization schema does not treat the href and xlink:href attributes of SVG script elements as a resource URL context, so they are not sanitized. An attacker who can get a crafted SVG script element into an Angular application's templates, with a user needing to act (such as viewing or interacting with the affected content) and the attacker holding low-privilege access, could run script in the victim's browser session.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:06Z"},"euvd":{"id":"EUVD-2026-1698","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-angular-cve-2025-66412","parents":[{"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"}]}],"children":[{"from":"CVE-2026-22610","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/core/src/sanitization/sanitization.ts"],"commits":["https://github.com/angular/angular/commit/91dc91bae4a1bbefc58bef6ef739d0e02ab44d56","https://github.com/angular/angular/commit/2f96c8020f85ccb715a76de4b79a0c680c2c7264","https://github.com/angular/angular/commit/6afe6fa781c2f0931f0aedd729b9884a8fe212ee"],"basis":"shared function","functions":["SECURITY_SCHEMA","trustConstantResourceUrl"]}]}],"packageHistory":[{"cve":"CVE-2021-4231","published":"2022-05-26","fixed":"11.1.0-next.3","kev":false},{"cve":"CVE-2026-22610","published":"2026-01-10","fixed":"21.1.0-rc.0","kev":false},{"cve":"CVE-2026-27970","published":"2026-02-26","fixed":"21.2.0","kev":false,"link":{"from":"CVE-2026-22610","to":"CVE-2026-27970","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@angular/core","fromFixed":"21.1.0-rc.0","toFixed":"21.1.6","daysApart":47},{"kind":"version-step","provenance":"source","package":"npm:@angular/core","fromFixed":"20.3.16","toFixed":"20.3.17","daysApart":47}]}},{"cve":"CVE-2026-50557","published":"2026-06-22","fixed":"22.0.0-rc.2","kev":false},{"cve":"CVE-2026-52725","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,"link":{"from":"CVE-2026-22610","to":"CVE-2026-32635","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@angular/compiler","fromFixed":"21.1.0-rc.0","toFixed":"21.2.4","daysApart":62},{"kind":"version-step","provenance":"source","package":"npm:@angular/compiler","fromFixed":"20.3.16","toFixed":"20.3.18","daysApart":62}]}}],"package":"npm:@angular/core"}}