{"cve":"CVE-2026-52725","nvd":{"published":"2026-06-22T16:16:38.193","modified":"2026-07-09T15:38:38.650","status":"Analyzed","description":"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.","cvss_v4":{"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","score":5.3},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/angular/angular/pull/68686","https://github.com/angular/angular/pull/68713","https://github.com/angular/angular/security/advisories/GHSA-692r-grfm-v8x7"],"products":["angular:angular"],"source":"nvd","synced_at":"2026-10-19T22:39:28.638635428+00:00"},"epss":{"cve":"CVE-2026-52725","score":0.0046,"percentile":0.39863,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-692r-grfm-v8x7","url":"https://osv.dev/vulnerability/GHSA-692r-grfm-v8x7","summary":"@angular/core: Angular Template and Dynamic Component Namespace Bypass leading to Cross-Site Scripting (XSS)","modified":"2026-09-10T03:50:48.470910954Z","packages":[{"ecosystem":"npm","name":"@angular/core","purl":"pkg:npm/%40angular/core","ranges":[">=21.0.0-next.0 <21.2.15"],"fixed":["21.2.15"]},{"ecosystem":"npm","name":"@angular/core","purl":"pkg:npm/%40angular/core","ranges":[">=22.0.0-next.0 <22.0.0-rc.2"],"fixed":["22.0.0-rc.2"]},{"ecosystem":"npm","name":"@angular/core","purl":"pkg:npm/%40angular/core","ranges":[">=19.0.0-next.0 <19.2.23"],"fixed":["19.2.23"]},{"ecosystem":"npm","name":"@angular/core","purl":"pkg:npm/%40angular/core","ranges":["<=18.2.14"],"fixed":[]},{"ecosystem":"npm","name":"@angular/core","purl":"pkg:npm/%40angular/core","ranges":[">=20.0.0-next.0 <20.3.22"],"fixed":["20.3.22"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}