{"id":"CVE-2026-52725","published":"2026-06-22T15:18:43Z","modified":"2026-06-22T15:59:33Z","title":"Angular Template and Dynamic Component Namespace Bypass leading to Cross-Site Scripting (XSS)","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 22.0.0-rc.2, 21.2.15, 20.3.22, and 19.2.23, an issue in the @angular/core package allows bypassing script-execution restrictions during dynamic component creation. Specifically, the dynamic component instantiation mechanism (createComponent) failed to reject mounting components directly onto a <script> or namespaced script element (such as <svg:script>). This enabled the initialization of custom components on a tag that executes scripts, allowing attackers to hijack or inject script-executing hosts. This flaw enables an attacker who can control the host element or selector parameter passed to createComponent to initialize or mount an Angular component directly onto a <script> tag, leading to execution of untrusted code or client-side Cross-Site Scripting (XSS). This vulnerability is fixed in 22.0.0-rc.2, 21.2.15, 20.3.22, and 19.2.23.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0046,"percentile":0.31812,"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-692r-grfm-v8x7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/angular/angular/pull/68686","tags":["x_refsource_MISC"]},{"url":"https://github.com/angular/angular/pull/68713","tags":["x_refsource_MISC"]}],"priority":{"score":10.1,"factors":[{"name":"EPSS percentile","points":6.36},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"angular","affectedVersions":[{"vendor":"angular","product":"angular","versions":[">= 22.0.0-next.0 < 22.0.0-rc.2",">= 21.0.0-next.0 < 21.2.15",">= 20.0.0-next.0 < 20.3.22",">= 19.0.0-next.0 < 19.2.22","<= 18.2.14"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-22T15:59:13.494116Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@angular/core","vulnerableRanges":[">=21.0.0-next.0, <21.2.15",">=22.0.0-next.0, <22.0.0-rc.2",">=19.0.0-next.0, <19.2.23","<=18.2.14",">=20.0.0-next.0, <20.3.22"],"patched":["21.2.15","22.0.0-rc.2","19.2.23","20.3.22"],"from":["GHSA-692r-grfm-v8x7"],"provenance":"source"}],"summary":{"text":"A flaw in the @angular/core package of the Angular framework lets the dynamic component creation mechanism (createComponent) mount a component directly onto a <script> or namespaced script element such as <svg:script>, when it should reject that target. An attacker who can control the host element or selector passed to createComponent, and who needs a user to interact with the page, can cause untrusted script to execute, resulting in client-side cross-site scripting.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:02:43Z"},"euvd":{"id":"EUVD-2026-38261","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"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},{"cve":"CVE-2026-50557","published":"2026-06-22","fixed":"22.0.0-rc.2","kev":false,"link":{"from":"CVE-2026-50557","to":"CVE-2026-52725","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@angular/core","fromFixed":"19.2.22","toFixed":"19.2.23","daysApart":0},{"kind":"similar","provenance":"machine","score":0.24,"basis":"same product + CWE + description similarity"}]}},{"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-32635","to":"CVE-2026-52725","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@angular/core","fromFixed":"21.2.4","toFixed":"21.2.15","daysApart":101},{"kind":"version-step","provenance":"source","package":"npm:@angular/core","fromFixed":"20.3.18","toFixed":"20.3.22","daysApart":101}]}},{"cve":"CVE-2026-54267","published":"2026-06-22","fixed":"22.0.1","kev":false,"link":{"from":"CVE-2026-52725","to":"CVE-2026-54267","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@angular/core","fromFixed":"21.2.15","toFixed":"21.2.17","daysApart":0},{"kind":"version-step","provenance":"source","package":"npm:@angular/core","fromFixed":"20.3.22","toFixed":"20.3.25","daysApart":0}]}},{"cve":"CVE-2026-69151","published":"2026-08-03","fixed":"22.0.1","kev":false}],"package":"npm:@angular/core"}}