All vulnerabilities

Servers and applications

CVE-2026-50557

Template and Attribute Namespace Sanitization Bypass (XSS)

Severity
Medium 5.3
Published
5 Jun 2026
Last changed
8 Jun 2026
Added to UpHeron
3 Nov 2026
Exploit chance
0.4% in the next 30 daysHigher than 36% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · No login needed · Needs someone to view a page or file
Attacker can
Read some data · Change some data
CVSS vector
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
Also known as
GHSA-f3m7-gqxr-g87x
Sources
Project advisories (GitHub)

Description

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., 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).

From angular/angular's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
AngularServers and applications · github:angular/angular
  • Every version up to 18.2.14

About Angular

web application framework

From Wikidata, CC0 1.0.
Developers who used it in the past year
18.2%Stack Overflow Developer Survey 2025, 2025
Weekly downloads (npm)
8,195,583npm, 15 Nov 2026
GitHub stars
101,504GitHub, 15 Nov 2026
Forks
28,216GitHub, 15 Nov 2026
Latest release
v22.2.6GitHub, 15 Nov 2026
Released
12 Nov 2026GitHub
Developer
GoogleWikidata
License
MIT LicenseWikidata
Written in
TypeScriptWikidata
First released
15 Sept 2016Wikidata
First published on GitHub
18 Sept 2014GitHub

Release lines

ReleaseLatestSecurity fixes
2222.2.6Until 30 Jun 2028
2121.2.26Until 30 Jun 2027
2020.3.35Until 28 Nov 2026
1919.2.25Ended 19 May 2026
1818.2.14Ended 21 Nov 2025
1717.3.12Ended 15 May 2025

From endoflife.date.

References