CVE-2026-52725 Details
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.
A vulnerability in the Angular framework's dynamic component creation process in the @angular/core package allows for the bypass of script execution restrictions. This issue is present in versions prior to 22.0.0-rc.2, 21.2.15, 20.3.22, and 19.2.23. The vulnerability arises because the createComponent function did not properly validate host elements, allowing components to be mounted on <script> tags or namespaced script elements like <svg:script>. As a result, attackers could execute untrusted code or inject scripts, leading to client-side Cross-Site Scripting (XSS) attacks.
Users can upgrade to Angular versions 22.0.0-rc.2, 21.2.15, 20.3.22, or 19.2.23 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/angular/angular/pull/68686 | [email protected] | Issue TrackingPatch |
| https://github.com/angular/angular/pull/68713 | [email protected] | Issue Tracking |
| https://github.com/angular/angular/security/advisories/GHSA-692r-grfm-v8x7 | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| angular angular | <= 18.2.14 >= 19.0.0, < 19.2.23 >= 20.0.0, < 20.3.22 >= 21.0.0, < 21.2.15 22.0.0 next0 22.0.0 next1 22.0.0 next10 22.0.0 next11 22.0.0 next12 22.0.0 next2 22.0.0 next3 22.0.0 next4 22.0.0 next5 22.0.0 next6 22.0.0 next7 22.0.0 next8 22.0.0 next9 22.0.0 rc0 22.0.0 rc1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 9, 2026 | Reanalysis | [email protected] |
| Jun 26, 2026 | Initial Analysis | [email protected] |
| Jun 22, 2026 | CVE Modified | CISA-ADP |
| Jun 22, 2026 | New CVE Received | [email protected] |