CVE-2026-50557 Angular: Template and Attribute Namespace Sanitization Bypass (XSS)
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
11 packages: 3 fixed, 8 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/angular.js(Debian 12) | = 1.8.3-1; = 1.8.3-1+deb12u1; = 1.8.3-1+deb12u1~deb11u1; = 1.8.3-2 +2 more | No fix listed | No fix yet |
| debian/angular.js(Debian 13) | = 1.8.3-3; All versions | No fix listed | No fix yet |
| redhat/compiler(Red Hat apicurio_registry 3) | All versions | No fix listed | No fix yet |
| redhat/core(Red Hat acm 2) | All versions | No fix listed | No fix yet |
| ubuntu/angular.js(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/angular.js(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/angular.js(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/angular.js(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| angular | <= 18.2.14; = 22.0.0-next0; = 22.0.0-next1; = 22.0.0-next2 +20 more | 19.2.22, 20.3.22, 21.2.15 | Fixed |
| angular compiler(npm) | <= 18.2.14; >= 19.0.0-next.0, < 19.2.22; >= 20.0.0-next.0, < 20.3.22; >= 21.0.0-next.0, < 21.2.15 +1 more | 19.2.22, 20.3.22, 21.2.15, 22.0.0-rc.2 | Fixed |
| angular core(npm) | <= 18.2.14; >= 19.0.0-next.0, < 19.2.22; >= 20.0.0-next.0, < 20.3.22; >= 21.0.0-next.0, < 21.2.15 +1 more | 19.2.22, 20.3.22, 21.2.15, 22.0.0-rc.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| angular | = >= 21.0.0-next.0 < 21.2.15 | No fix listed |
| angular | = >= 22.0.0-next.0 < 22.0.0-rc.2 | No fix listed |
| angular | = >= 20.0.0-next.0 < 20.3.22 | No fix listed |
| angular | = >= 19.0.0-next.0 < 19.2.22 | No fix listed |
| angular | = <= 18.2.14 | No fix listed |
| redhat/core(Red Hat:acm:2) | All versions | No fix listed |
| redhat/compiler(Red Hat:apicurio_registry:3) | All versions | No fix listed |
| angular core(npm) | >= 21.0.0-next.0, < 21.2.15 | 21.2.15 |
| angular core(npm) | >= 22.0.0-next.0, < 22.0.0-rc.2 | 22.0.0-rc.2 |
| angular core(npm) | >= 20.0.0-next.0, < 20.3.22 | 20.3.22 |
| angular core(npm) | >= 19.0.0-next.0, < 19.2.22 | 19.2.22 |
| angular core(npm) | <= 18.2.14 | No fix listed |
| angular compiler(npm) | >= 21.0.0-next.0, < 21.2.15 | 21.2.15 |
| angular compiler(npm) | >= 22.0.0-next.0, < 22.0.0-rc.2 | 22.0.0-rc.2 |
| angular compiler(npm) | >= 20.0.0-next.0, < 20.3.22 | 20.3.22 |
| angular compiler(npm) | >= 19.0.0-next.0, < 19.2.22 | 19.2.22 |
| angular compiler(npm) | <= 18.2.14 | No fix listed |
| debian/angular.js(Debian:12) | All versions | No fix listed |
| debian/angular.js(Debian:12) | = 1.8.3-1 | No fix listed |
| debian/angular.js(Debian:12) | = 1.8.3-1+deb12u1 | No fix listed |
| debian/angular.js(Debian:12) | = 1.8.3-1+deb12u1~deb11u1 | No fix listed |
| debian/angular.js(Debian:12) | = 1.8.3-2 | No fix listed |
| debian/angular.js(Debian:12) | = 1.8.3-3 | No fix listed |
| debian/angular.js(Debian:13) | All versions | No fix listed |
| debian/angular.js(Debian:13) | = 1.8.3-3 | No fix listed |
Show 23 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/angular.js(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/angular.js(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/angular.js(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/angular.js(Ubuntu:26.10) | All versions | No fix listed |
| angular | <= 18.2.14 | No fix listed |
| angular | >= 19.0.0, < 19.2.22 | 19.2.22 |
| angular | >= 20.0.0, < 20.3.22 | 20.3.22 |
| angular | >= 21.0.0, < 21.2.15 | 21.2.15 |
| angular | = 22.0.0-next0 | No fix listed |
| angular | = 22.0.0-next1 | No fix listed |
| angular | = 22.0.0-next10 | No fix listed |
| angular | = 22.0.0-next11 | No fix listed |
| angular | = 22.0.0-next12 | No fix listed |
| angular | = 22.0.0-next2 | No fix listed |
| angular | = 22.0.0-next3 | No fix listed |
| angular | = 22.0.0-next4 | No fix listed |
| angular | = 22.0.0-next5 | No fix listed |
| angular | = 22.0.0-next6 | No fix listed |
| angular | = 22.0.0-next7 | No fix listed |
| angular | = 22.0.0-next8 | No fix listed |
| angular | = 22.0.0-next9 | No fix listed |
| angular | = 22.0.0-rc0 | No fix listed |
| angular | = 22.0.0-rc1 | No fix listed |
References
- https://github.com/angular/angular/security/advisories/GHSA-f3m7-gqxr-g87x third-party-advisory vendor-advisory
- https://github.com/angular/angular/pull/68689 issue-tracking patch
- https://github.com/angular/angular/pull/68868 issue-tracking patch
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2491419 issue-tracking
- www.cve.org
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- Debian Security Tracker CVE-2026-50557 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- github.com product