CVE-2026-50557Medium▾ SunlitAngular: Template and Attribute Namespace Sanitization Bypass (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.3%
An issue in the @angular/compiler and @angular/core packages allows bypassing element and attribute sanitization/validation through specific namespace workarounds.
Specifically, namespaced script elements (e.g., <svg:script> or <:svg:script>) were not properly identified as script elements by the Angular template preparser, allowing them to pass through template compilation without being stripped.
Furthermore, security context schema mappings for element attributes did not consistently handle attributes within namespaced elements (like SVG and MathML), opening up gaps where malicious namespaced attributes could bypass runtime and compile-time sanitizers.
Combined, these flaws enable an attacker who can inject or supply a template/tag structure with custom namespaces to bypass Angular's script-stripping logic and attribute sanitizers, leading to client-side Cross-Site Scripting (XSS).
Any Angular application that compiles user-controlled templates at runtime, or relies on sanitization of namespaced elements/attributes, is vulnerable to this security bypass.
Once exploited, this allows a malicious actor to inject a namespaced script element or dynamic attribute bindings, bypassing core sanitization constraints 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:
<svg:script>) to evade standard tag-name blocklists/checks.@angular/core >= 21.0.0-next.0, < 21.2.15@angular/core >= 22.0.0-next.0, < 22.0.0-rc.2@angular/core >= 20.0.0-next.0, < 20.3.22@angular/core >= 19.0.0-next.0, < 19.2.22@angular/core <= 18.2.14@angular/compiler >= 21.0.0-next.0, < 21.2.15@angular/compiler >= 22.0.0-next.0, < 22.0.0-rc.2@angular/compiler >= 20.0.0-next.0, < 20.3.22@angular/compiler >= 19.0.0-next.0, < 19.2.22@angular/compiler <= 18.2.14Upgrade to a patched release:
@angular/core 21.2.15@angular/core 22.0.0-rc.2@angular/core 20.3.22@angular/core 19.2.22@angular/compiler 21.2.15@angular/compiler 22.0.0-rc.2@angular/compiler 20.3.22@angular/compiler 19.2.22Connected by shared product, vendor, weakness, or advisory.
CVE-2026-54267HighAngular Client Hydration DOM Clobbering & Response-Cache Poisoning
CVE-2026-52725Medium@angular/core: Angular Template and Dynamic Component Namespace Bypass leading to Cross-Site Scripting (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)