CVE-2026-52725
@angular/core: @angular/core: Cross-Site Scripting (XSS) via dynamic component creation bypass
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · June 23, 2026
Updated · July 16, 2026
Description
A flaw was found in the @angular/core component. This vulnerability allows an attacker to bypass security restrictions when creating dynamic components. By manipulating the host element or selector, an attacker can force an Angular component to be mounted directly onto a script tag. This can result in the execution of untrusted code or client-side Cross-Site Scripting (XSS), potentially compromising user data or system integrity.
Statement
Red Hat has evaluated this vulnerability and determined that most products listed as shipping @angular/core in their SBOMs are not affected. The majority of flagged components (firefox, thunderbird, mozjs, gjs, intel-cmt-cat, syncthing, ceph, and others) either do not use the Angular framework at all (technology mismatch — these are C++/Rust/Go applications), use the unrelated AngularJS 1.x framework (which lacks the createComponent API), or have the Angular frontend excluded from the productized build (e.g., Ceph RPMs build with -DWITH_MGR_DASHBOARD_FRONTEND:BOOL=OFF). The createComponent API that this vulnerability targets is specific to @angular/core version 2+ and is not reachable in these components.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Users of applications built with @angular/core versions prior to 19.2.23, 20.3.22, 21.2.15, or 22.0.0-rc.2 should upgrade to the fixed versions. Applications that do not use the createComponent API with user-controlled host element parameters are not exploitable.
CVSS / CWE
CVSS 3.1 · 6.8CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
CWE-791 · Incomplete Filtering of Special Elements