{"id":"CVE-2026-52725","state":"PUBLISHED","title":"Angular Template and Dynamic Component Namespace Bypass leading to Cross-Site Scripting (XSS)","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.","publishedAt":"2026-06-22T15:18:43.036Z","updatedAt":"2026-06-22T15:59:33.229Z","severity":{"score":5.3,"label":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["angular angular"],"affected":[{"vendor":"angular","product":"angular","versions":[{"version":">= 22.0.0-next.0 < 22.0.0-rc.2","status":"affected"},{"version":">= 21.0.0-next.0 < 21.2.15","status":"affected"},{"version":">= 20.0.0-next.0 < 20.3.22","status":"affected"},{"version":">= 19.0.0-next.0 < 19.2.22","status":"affected"},{"version":"<= 18.2.14","status":"affected"}]}],"references":["https://github.com/angular/angular/security/advisories/GHSA-692r-grfm-v8x7","https://github.com/angular/angular/pull/68686","https://github.com/angular/angular/pull/68713"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/52xxx/CVE-2026-52725.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-52725","state":"PUBLISHED","datePublished":"2026-06-22T15:18:43.036Z","dateUpdated":"2026-06-22T15:59:33.229Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-08T14:00:43.571Z"},"containers":{"cna":{"title":"Angular Template and Dynamic Component Namespace Bypass leading to Cross-Site Scripting (XSS)","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"angular","product":"angular","versions":[{"version":">= 22.0.0-next.0 < 22.0.0-rc.2","status":"affected"},{"version":">= 21.0.0-next.0 < 21.2.15","status":"affected"},{"version":">= 20.0.0-next.0 < 20.3.22","status":"affected"},{"version":">= 19.0.0-next.0 < 19.2.22","status":"affected"},{"version":"<= 18.2.14","status":"affected"}]}],"references":[{"url":"https://github.com/angular/angular/security/advisories/GHSA-692r-grfm-v8x7","name":"https://github.com/angular/angular/security/advisories/GHSA-692r-grfm-v8x7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/angular/angular/pull/68686","name":"https://github.com/angular/angular/pull/68686","tags":["x_refsource_MISC"]},{"url":"https://github.com/angular/angular/pull/68713","name":"https://github.com/angular/angular/pull/68713","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-06-22T15:18:43.036Z"},"source":{"advisory":"GHSA-692r-grfm-v8x7","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-06-22T15:59:13.494116Z","id":"CVE-2026-52725","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-22T15:59:33.229Z"}}]}}}