CVE-2026-52725Medium▾ Sunlit@angular/core: Angular Template and Dynamic Component Namespace Bypass leading to Cross-Site Scripting (XSS)
▾ Sunlit zone — Low / medium · no exploitation signal
impact 27.5 · likelihood 0.1 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Jul 7.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via GHSA
0.2%
0.2% → 0.4%
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).
Any Angular application that registers dynamic components based on user-supplied parameters (like selectors or host elements) is vulnerable to this security bypass.
Once exploited, this allows a malicious actor to mount a dynamic component on a script tag, bypassing core dynamic component creation safeguards to execute arbitrary JavaScript within the target user's browser context. This could lead to session hijacking, sensitive data exposure, or unauthorized actions on behalf of the user.
To successfully exploit these vulnerabilities, the following environment parameters and application states must all concurrently exist:
createComponent.@angular/core >= 21.0.0-next.0, < 21.2.15@angular/core >= 22.0.0-next.0, < 22.0.0-rc.2@angular/core >= 19.0.0-next.0, < 19.2.22@angular/core <= 18.2.14@angular/core >= 20.0.0-next.0, < 20.3.22Upgrade to a patched release:
@angular/core 21.2.15@angular/core 22.0.0-rc.2@angular/core 19.2.23@angular/core 20.3.22Connected by shared product, vendor, weakness, or advisory.
CVE-2026-54267HighAngular Client Hydration DOM Clobbering & Response-Cache Poisoning
CVE-2026-50557MediumAngular: Template and Attribute Namespace Sanitization Bypass (XSS)
CVE-2026-69149HighAngular SSR: Missing Fallback Raw-Content Serialization Escaping leads to Cross-Site Scripting (XSS)
CVE-2026-69151HighAngular i18n: Cross-Site Scripting (XSS) via event-handler attributes
CVE-2026-50555High@angular/platform-server: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE-2026-54265Medium@angular/compiler: Two-Way Property Binding Sanitization Bypass (XSS)