CVE-2026-52725
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 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 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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
@angular/corenpm | >= 21.0.0-next.0, < 21.2.15 | 21.2.15 |
@angular/corenpm | >= 22.0.0-next.0, < 22.0.0-rc.2 | 22.0.0-rc.2 |
@angular/corenpm | >= 19.0.0-next.0, < 19.2.23 | 19.2.23 |
@angular/corenpm | <= 18.2.14 | — |
@angular/corenpm | >= 20.0.0-next.0, < 20.3.22 | 20.3.22 |
Affected products
25>= 20.0.0-next.0, < 20.3.22+ 16 more
- (no CPE)range: >= 20.0.0-next.0, < 20.3.22
- cpe:2.3:a:angular:angular:*:*:*:*:*:node.js:*:*range: <=18.2.14
- cpe:2.3:a:angular:angular:22.0.0:next0:*:*:*:node.js:*:*
- cpe:2.3:a:angular:angular:22.0.0:next10:*:*:*:node.js:*:*
- cpe:2.3:a:angular:angular:22.0.0:next11:*:*:*:node.js:*:*
- cpe:2.3:a:angular:angular:22.0.0:next12:*:*:*:node.js:*:*
- cpe:2.3:a:angular:angular:22.0.0:next1:*:*:*:node.js:*:*
- cpe:2.3:a:angular:angular:22.0.0:next2:*:*:*:node.js:*:*
- cpe:2.3:a:angular:angular:22.0.0:next3:*:*:*:node.js:*:*
- cpe:2.3:a:angular:angular:22.0.0:next4:*:*:*:node.js:*:*
- cpe:2.3:a:angular:angular:22.0.0:next5:*:*:*:node.js:*:*
- cpe:2.3:a:angular:angular:22.0.0:next6:*:*:*:node.js:*:*
- cpe:2.3:a:angular:angular:22.0.0:next7:*:*:*:node.js:*:*
- cpe:2.3:a:angular:angular:22.0.0:next8:*:*:*:node.js:*:*
- cpe:2.3:a:angular:angular:22.0.0:next9:*:*:*:node.js:*:*
- cpe:2.3:a:angular:angular:22.0.0:rc0:*:*:*:node.js:*:*
- cpe:2.3:a:angular:angular:22.0.0:rc1:*:*:*:node.js:*:*
- osv-coords8 versionspkg:apk/chainguard/katib-suggestion-hyperbandpkg:apk/chainguard/katib-suggestion-optuna-enaspkg:apk/chainguard/katib-suggestion-skopt-enaspkg:apk/chainguard/katib-tfevent-metricscollectorpkg:apk/wolfi/katib-suggestion-hyperbandpkg:apk/wolfi/katib-suggestion-optuna-enaspkg:apk/wolfi/katib-suggestion-skopt-enaspkg:apk/wolfi/katib-tfevent-metricscollector
< 0.19.0-r31+ 7 more
- (no CPE)range: < 0.19.0-r31
- (no CPE)range: < 0.19.0-r31
- (no CPE)range: < 0.19.0-r31
- (no CPE)range: < 0.19.0-r31
- (no CPE)range: < 0.19.0-r31
- (no CPE)range: < 0.19.0-r31
- (no CPE)range: < 0.19.0-r31
- (no CPE)range: < 0.19.0-r31
Patches
Vulnerability mechanics
References
5- github.com/angular/angular/pull/68686nvdIssue TrackingPatchWEB
- github.com/advisories/GHSA-692r-grfm-v8x7ghsaADVISORY
- github.com/angular/angular/security/advisories/GHSA-692r-grfm-v8x7nvdThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2026-52725ghsaADVISORY
- github.com/angular/angular/pull/68713nvdIssue TrackingWEB
News mentions
1- Angular: 14 CVEs Disclosed Across Core Packages — XSS, DoS, SSRF, and Cache PoisoningVypr Intelligence · Jun 15, 2026