CVE-2026-52725
published medium CVSS 4.0 · 5.3Angular Template and Dynamic Component Namespace Bypass leading to Cross-Site Scripting (XSS)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 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 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| angular | angular | >= 22.0.0-next.0 < 22.0.0-rc.2 (affected)>= 21.0.0-next.0 < 21.2.15 (affected)>= 20.0.0-next.0 < 20.3.22 (affected)>= 19.0.0-next.0 < 19.2.22 (affected)<= 18.2.14 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
3Provider assertions
2GitHub_M · cna
Angular Template and Dynamic Component Namespace Bypass leading to Cross-Site Scripting (XSS)
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f5c21f5358a416ab1f2d80ecb631b20f5eae6f17cdcbc842667127eb6c3cc81e
- Ingested
- 23 Sep 2026, 09:19:17 UTC
- Source record
- Official CVE record