CVE-2026-50557
published medium CVSS 4.0 · 5.3Angular: Template and Attribute Namespace Sanitization Bypass (XSS)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| angular | — | angular>= 21.0.0-next.0 < 21.2.15 · >= 22.0.0-next.0 < 22.0.0-rc.2 · >= 20.0.0-next.0 < 20.3.22 · >= 19.0.0-next.0 < 19.2.22 · <= 18.2.14 | Affected | Not stated | GitHub_M |
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.22, 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). This vulnerability is fixed in 22.0.0-rc.2, 21.2.15, 20.3.22 and 19.2.22.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| angular | angular | >= 21.0.0-next.0 < 21.2.15 (affected)>= 22.0.0-next.0 < 22.0.0-rc.2 (affected)>= 20.0.0-next.0 < 20.3.22 (affected)>= 19.0.0-next.0 < 19.2.22 (affected)<= 18.2.14 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
3Provider assertions
2GitHub_M · cna
Angular: Template and Attribute Namespace Sanitization Bypass (XSS)
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a47f26847ff59b39d2fda6033893bd94d0cdf81a23d65cde68d78179ca973310
- Ingested
- 23 Sep 2026, 09:18:57 UTC
- Source record
- Official CVE record