Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-50557— Angular: Template and Attribute Namespace Sanitization Bypass (XSS)

Quick assessment

Affected
angular angular
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Angular是Angular组织开源的一个开发平台。用于使用 Typescript / JavaScript 和其他语言构建移动和桌面 Web 应用程序。 Angular存在跨站脚本漏洞,该漏洞源于通过特定命名空间绕过元素和属性清理/验证,恶意命名空间属性可绕过运行时和编译时清理器,可能导致客户端跨站脚本攻击。

AI Predicted 6.1 Difficulty: Moderate EPSS 0.20% · P11

Affected Version Matrix 5

VendorProduct Version RangeStatus
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
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-50557

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Angular: Template and Attribute Namespace Sanitization Bypass (XSS)
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5
Vulnerability Title
Angular 跨站脚本漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Angular是Angular组织开源的一个开发平台。用于使用 Typescript / JavaScript 和其他语言构建移动和桌面 Web 应用程序。 Angular存在跨站脚本漏洞,该漏洞源于通过特定命名空间绕过元素和属性清理/验证,恶意命名空间属性可绕过运行时和编译时清理器,可能导致客户端跨站脚本攻击。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
angular angular >= 21.0.0-next.0 < 21.2.15 -

II. Public POCs for CVE-2026-50557

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-50557

登录查看更多情报信息。

Patches & Fixes for CVE-2026-50557 (2)

Vendor Advisories for CVE-2026-50557 (1)

Same Patch Batch · angular · 2026-06-22 · 17 CVEs total

CVE-2026-52725 Angular Template and Dynamic Component Namespace Bypass leading to Cross-Site Scripting (X
CVE-2026-54265 Angular: Two-Way Property Binding Sanitization Bypass (XSS)
CVE-2026-54268 Angular: Denial of Service (DoS) via OOM in Date Formatting (formatDate)
CVE-2026-54266 Angular: Weak 32-Bit Cache Key Hashing in `HttpTransferCache` Leading to Cross-Request Dat
CVE-2026-54264 Angular: Sensitive Header Leakage on Cross-Origin Redirects in Angular Service Worker
CVE-2026-54267 Angular Client Hydration DOM Clobbering & Response-Cache Poisoning
CVE-2026-49241 Angular: Multiple Remote Code Execution Vulnerabilities in Angular Language Service VS Cod
CVE-2026-50171 Angular: Denial of Service (DoS) via OOM in Number Formatting (digitsInfo)
CVE-2026-50169 Angular Service Worker Policy-Bypass & Credential-Stripping Vulnerabilities
CVE-2026-50168 Angular: URL Parser Differential in @angular/platform-server leading to SSRF Allowlist Byp
CVE-2026-50556 Angular: Missing `<noscript>` Raw-Text Serialization Escaping leads to Cross-Site Scriptin
CVE-2026-50555 Angular: Improper Neutralization of Input During Web Page Generation ('Cross-site Scriptin
CVE-2026-50184 Angular: Request Credential & Cache Policy Stripping in Angular Service Worker
CVE-2026-50170 Angular: Information Leak via Default Caching of Credentialed Requests in HttpTransferCach
CVE-2026-50178 Angular: Remote Code Execution via JSDoc Hover Command Injection in VS Code Angular Langua
CVE-2026-46417 Angular: SSRF via Hostname Hijacking in @angular/platform-server

IV. Related Vulnerabilities

V. Comments for CVE-2026-50557

No comments yet


Leave a comment