CVE-2026-52725

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.

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.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score6.86.1N/A
Attack VectorNetworkNetworkN/A
Attack ComplexityHighLowN/A
Privileges RequiredNoneNoneN/A
User InteractionRequiredRequiredN/A
ScopeUnchangedChangedN/A
ConfidentialityHighLowN/A
Integrity ImpactHighLowN/A
Availability ImpactNoneNoneN/A

Vector

Red Hat: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

NVD: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Understanding the Weakness (CWE)

Integrity

Technical Impact: Unexpected State

Frequently Asked Questions

Want to get errata notifications? Sign up here.