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., 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.
CVE-2026-50557
This medium-severity CVE scores 6.1 under NVD CVSS v3. EPSS exploit probability: 0.2%, top 89% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 6.1
- EG Score
- 6.1(medium)
- EPSS
- 10.7%
- KEV
- Not listed
Published
June 15, 2026
Last Modified
June 26, 2026
Advisory Details (3)
Auto-updated Jun 22, 2026Template and Attribute Namespace Sanitization Bypass (XSS) · Advisory · angular/angular · GitHub
https://github.com/angular/angular/security/advisories/GHSA-f3m7-gqxr-g87xfix(compiler): sanitize dynamic href and xlink:href bindings on SVG a…
Upstream fix in progress (PR #68868 · angular/angular, state=closed)
https://github.com/angular/angular/pull/68868fix(compiler): strip namespaced SVG script elements during template compilation
Fix merged in angular/angular PR #68689 on 2026-05-19 — awaiting tagged release
https://github.com/angular/angular/pull/68689Vendor Advisories for CVE-2026-50557(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(2 across 1 ecosystem)
npm(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| @angular/compiler | — | — | — |
| @angular/core | — | — | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 11× in last 7d / 32× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-07 00:21 UTCEG score recompute
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-05 11:28 UTCEG score recompute
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 10:03 UTCEG score recompute
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-03 07:59 UTCEG score recompute
- 2026-07-02 06:34 UTCEG score recompute
- 2026-07-01 15:07 UTCEPSS rescore
- 2026-07-01 05:08 UTCEG score recompute
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-30 03:44 UTCEG score recompute
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-29 02:20 UTCEG score recompute
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-28 00:56 UTCEG score recompute
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-26 23:32 UTCEG score recompute▲ 0.80
- 2026-06-26 19:41 UTCNVD updateCVSS v3 → 6.1
- 2026-06-25 22:07 UTCEG score recompute
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-24 20:41 UTCEG score recompute
Show 7 moreShow fewer
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-23 19:16 UTCEG score recompute
- 2026-06-22 17:51 UTCEG score recompute▲ 5.30
- 2026-06-22 17:45 UTCNVD updateCVSS v3 → 5.3 · CVSS v4 → 5.3
- 2026-06-15 17:46 UTCEG score recompute
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2026-50557?
When was CVE-2026-50557 disclosed?
Is CVE-2026-50557 actively exploited?
What is the CVSS score of CVE-2026-50557?
How do I remediate CVE-2026-50557?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-50557
Is Your Infrastructure Affected by CVE-2026-50557?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.