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

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2026-06-15T16:51:35.000Z
- Modified: 2026-09-10T03:50:48.470Z
- Also known as: GHSA-692r-grfm-v8x7
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- angular angular: >= 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; up to 18.2.14; from 19.0.0 before 19.2.23; from 20.0.0 before 20.3.22; from 21.0.0 before 21.2.15; 22.0.0
- @angular/core (npm): from 21.0.0-next.0 before 21.2.15; from 22.0.0-next.0 before 22.0.0-rc.2; from 19.0.0-next.0 before 19.2.23; up to 18.2.14; from 20.0.0-next.0 before 20.3.22

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `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`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/angular/angular/security/advisories/GHSA-692r-grfm-v8x7> (third-party-advisory, web)
- <https://github.com/angular/angular/pull/68686> (issue-tracking, patch, web)
- <https://github.com/angular/angular/pull/68713> (issue-tracking, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-52725> (advisory)
- <https://github.com/angular/angular> (package)

## Sources

- CVE List: [CVE-2026-52725](https://www.cve.org/CVERecord?id=CVE-2026-52725), CVE Terms of Use, modified 2026-06-22
- GitHub Advisory Database: [GHSA-692r-grfm-v8x7](https://github.com/advisories/GHSA-692r-grfm-v8x7), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-52725](https://nvd.nist.gov/vuln/detail/CVE-2026-52725), Public domain, modified 2026-07-09

---

Page: https://cve.day/CVE-2026-52725 · Whole record: https://cve.day/CVE-2026-52725.json · Rebuilt by cve.day 2026-11-25T22:59:25.369Z
