cve.bz

CVE-2026-50557 angular angular: Cross-site Scripting

5.3 mediumEPSS 0.4%Fix available

Medium (5.3) in angular angular. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in @angular/core 19.2.22, 20.3.22, 21.2.15.

On this page
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.

Severity

CVSS 4.0

5.3 medium
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

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
0.4% (unchanged from 0.4% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 36th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-06-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-50557 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-50557?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-50557?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-50557 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
angular:angularthrough 18.2.14
angular:angularfrom 19.0.0 before 19.2.22
angular:angularfrom 20.0.0 before 20.3.22
angular:angularfrom 21.0.0 before 21.2.15
angular:angular22.0.0:next0
angular:angular22.0.0:next1
angular:angular22.0.0:next10
angular:angular22.0.0:next11
angular:angular22.0.0:next12
angular:angular22.0.0:next2
angular:angular22.0.0:next3
angular:angular22.0.0:next4
angular:angular22.0.0:next5
angular:angular22.0.0:next6
angular:angular22.0.0:next7
angular:angular22.0.0:next8
angular:angular22.0.0:next9
angular:angular22.0.0:rc0
angular:angular22.0.0:rc1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-f3m7-gqxr-g87xnpm@angular/core>=21.0.0-next.0 <21.2.1521.2.15
GHSA-f3m7-gqxr-g87xnpm@angular/core>=22.0.0-next.0 <22.0.0-rc.222.0.0-rc.2
GHSA-f3m7-gqxr-g87xnpm@angular/core>=20.0.0-next.0 <20.3.2220.3.22
GHSA-f3m7-gqxr-g87xnpm@angular/core>=19.0.0-next.0 <19.2.2219.2.22
GHSA-f3m7-gqxr-g87xnpm@angular/core<=18.2.14no fix published
GHSA-f3m7-gqxr-g87xnpm@angular/compiler>=21.0.0-next.0 <21.2.1521.2.15
GHSA-f3m7-gqxr-g87xnpm@angular/compiler>=22.0.0-next.0 <22.0.0-rc.222.0.0-rc.2
GHSA-f3m7-gqxr-g87xnpm@angular/compiler>=20.0.0-next.0 <20.3.2220.3.22
GHSA-f3m7-gqxr-g87xnpm@angular/compiler>=19.0.0-next.0 <19.2.2219.2.22
GHSA-f3m7-gqxr-g87xnpm@angular/compiler<=18.2.14no fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13angular.jsno fix listedDEBIAN-CVE-2026-50557
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 5 moreangular.jsno fix listedUBUNTU-CVE-2026-50557

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A flaw was found in Angular's @angular/compiler and @angular/core packages. Namespaced script elements (e.g., &lt;svg:script&gt;) were not properly identified as script elements by the Angular template preparser, and security context schema mappings did not consistently handle attributes within namespaced elements. This allows an attacker who can inject template structures to bypass Angular's sanitization logic, potentially leading to cross-site scripting (XSS). This vulnerability only affects Angular 2+ (versions 19.x through 22.x); AngularJS 1.x is a different codebase and is not affected. Red Hat products shipping AngularJS 1.x (such as firefox, grafana, and thunderbird) are not impacted by this flaw.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Advanced Cluster Management for Kubernetes 2coreFix deferred
Red Hat build of Apicurio Registry 3compilerFix deferred
Red Hat Enterprise Linux 10firefoxNot affected
Red Hat Enterprise Linux 10gjsNot affected
Red Hat Enterprise Linux 10grafanaNot affected
Red Hat Enterprise Linux 10thunderbirdNot affected
Red Hat Enterprise Linux 7firefoxNot affected
Red Hat Enterprise Linux 8firefoxNot affected
Red Hat Enterprise Linux 8grafanaNot affected
Red Hat Enterprise Linux 8mozjs60Not affected
Red Hat Enterprise Linux 8thunderbirdNot affected
Red Hat Enterprise Linux 9firefoxNot affected
Red Hat Enterprise Linux 9gjsNot affected
Red Hat Enterprise Linux 9grafanaNot affected
Red Hat Enterprise Linux 9thunderbirdNot affected
Red Hat JBoss Enterprise Application Platform Expansion PackangularNot affected
Red Hat OpenStack Platform 16.2qpid-dispatchNot affected
Red Hat Quay 3quay/quay-rhel8Not affected
Red Hat Quay 3quay/quay-rhel9Not affected
Red Hat Single Sign-On 7angularNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-50557.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON