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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-22 · Modified: 2026-06-22
- Aliases: UBUNTU-CVE-2026-50557, DEBIAN-CVE-2026-50557, CGA-24hg-g6w3-37r3, CGA-2p4r-qm2j-9hpv, CGA-2p63-6x58-xcvc, CGA-3w2p-8fpj-hgv4, CGA-3w2p-9hwr-39v8, CGA-43vx-mff3-qq3v, CGA-4c5m-mj38-49gx, CGA-4rq6-8vvx-mmjq, CGA-4v96-j2wr-7vxv, CGA-4w97-cv6f-4j8h, CGA-5923-h7xm-7w7r, CGA-5fh9-3xvc-x2mv, CGA-5mcq-f8hm-7rfg, CGA-5r4h-mf2h-m426, CGA-5vff-55q5-h3r7, CGA-5wgc-wrwj-r97m, CGA-5xfv-w8j7-qg89, CGA-64pj-593r-jxfh, CGA-6584-pmfx-8mgh, CGA-69wg-5pp2-gx9c, CGA-6mcq-8fw2-h9w7, CGA-6rc2-6mx8-cvwj, CGA-775q-x668-v58r, CGA-7853-mxhr-39rf, CGA-7f58-mxvg-x463, CGA-7jp4-2vqq-q73f, CGA-7jvm-jvgp-7mv3, CGA-7x6c-q7g7-q7xx, CGA-848r-9g5r-p954, CGA-873v-rf7h-mwgr, CGA-8prw-7rqq-g7x3, CGA-8qg4-2gxx-jgpv, CGA-8w5h-255q-9f47, CGA-92f9-r273-3554, CGA-94xf-ghr4-9pvv, CGA-9752-v8qp-mf6j, CGA-97g7-9g57-7rpr, CGA-9vh9-qcp3-g7p5, CGA-ccrp-h6v9-7w9p, CGA-cjm9-wf5w-4v62, CGA-cpcg-c24p-fq7m, CGA-cpwf-7x7g-4vp4, CGA-cq9j-67gx-4h7q, CGA-f4fc-x3wj-3v74, CGA-f84w-9mwj-qcq9, CGA-ff2f-gh8x-hc49, CGA-fh35-96c9-6q9f, CGA-fjvq-6gq4-5h47, CGA-fv8q-vq85-rx25, CGA-fv9q-jc3r-g657, CGA-fw8p-26p3-47x3, CGA-fwjv-wh4g-g3h8, CGA-fx73-wvp8-5xjj, CGA-g6xp-274f-mxm8, CGA-g8mg-pxh4-cc33, CGA-ggjq-jccp-wfhm, CGA-gmj8-948r-8qjh, CGA-gmxv-cpmr-7x84, CGA-h3wr-5p3q-83qv, CGA-h4px-mjvr-hf7p, CGA-h56q-3c9w-mrpj, CGA-h956-hq5h-98p2, CGA-j452-h685-cffv, CGA-j89x-8p5v-mgwx, CGA-jg4f-2qqw-h6qg, CGA-jp28-75jg-jq5m, CGA-jx87-f9w6-xg5f, CGA-m63p-65gr-pq5f, CGA-m789-mj48-xcrx, CGA-mccr-mp2w-v92j, CGA-mcp9-v8vq-wr9r, CGA-mpv3-2629-g932, CGA-mv2g-h223-m3wj, CGA-p4jv-qwqj-69g7, CGA-pc63-44q8-3h4c, CGA-pgj8-hg22-5j2h, CGA-ppp2-f7h2-6ph7, CGA-q5c7-9xhx-6ggw, CGA-q66f-5gr8-xf4x, CGA-qcpr-26g4-q2g5, CGA-qfqj-5g87-3r29, CGA-qgg3-38p8-48r3, CGA-r3p2-623x-2x26, CGA-r5mq-26vh-pf29, CGA-rc3h-xg9c-c26r, CGA-rh8v-3fv6-x5w2, CGA-rhv5-7hxh-vf89, CGA-rm5m-wx9v-w6cp, CGA-rp4f-c6wh-3j22, CGA-rxgm-cqhc-gp6h, CGA-vwr6-h9hx-wxxv, CGA-w4q9-2686-p7fq, CGA-w5mj-vcw5-58f4, CGA-w7r4-2894-558p, CGA-wc5c-vjw7-jrvw, CGA-wc72-f36p-gvwv, CGA-wf4h-x88p-qw74, CGA-wfh6-v3hx-g45f, CGA-wg84-57f6-fr67, CGA-whjg-6m3w-4qwv, CGA-whv9-26vc-gr3r, CGA-wp6q-r89w-832m, CGA-wpmq-qm38-8xh9, CGA-wq4m-4j7h-7pr5, CGA-x3fc-qjx8-pwq8, CGA-xf6h-f65h-2w9f, CGA-xfmv-58x9-jp9m, CGA-xgx3-gqrr-h7xr, CGA-xrj4-g8vj-w2cj, CGA-xv29-hx52-q57q, GHSA-f3m7-gqxr-g87x
- Record: https://cvemate.com/vulnerability/CVE-2026-50557 · JSON: https://cvemate.com/vulnerability/CVE-2026-50557/json

## Description

```text
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.
```

## Signals

- CVSS: 6.1 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.243%, percentile 16.553%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 25)

- angular angular: ≥ 21.0.0-next.0 \< 21.2.15 (No fix recorded) \| ≥ 22.0.0-next.0 \< 22.0.0-rc.2 (No fix recorded) \| ≥ 20.0.0-next.0 \< 20.3.22 (No fix recorded) \| ≥ 19.0.0-next.0 \< 19.2.22 (No fix recorded) \| ≤ 18.2.14 \| ≥ 19.0.0, \< 19.2.22 \| ≥ 20.0.0, \< 20.3.22 \| ≥ 21.0.0, \< 21.2.15 \| 22.0.0:next0 \| 22.0.0:next1 \| 22.0.0:next10 \| 22.0.0:next11 \| 22.0.0:next12 \| 22.0.0:next2 \| 22.0.0:next3 \| 22.0.0:next4 \| 22.0.0:next5 \| 22.0.0:next6 \| 22.0.0:next7 \| 22.0.0:next8 \| 22.0.0:next9 \| 22.0.0:rc0 \| 22.0.0:rc1
- chainguard katib-earlystopping (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-goptuna-compat (Chainguard): All versions (No fix recorded) \| \< 0.19.0-r40
- chainguard katib-suggestion-hyperband (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-hyperopt (Chainguard): \< 0.19.0-r40 \| \< 0.19.0-r31
- chainguard katib-suggestion-nas-darts (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-nas-enas (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-optuna-enas (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-pbt-enas (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-skopt-enas (Chainguard): \< 0.19.0-r31
- chainguard katib-tfevent-metricscollector (Chainguard): \< 0.19.0-r31
- wolfi katib-earlystopping (Wolfi): \< 0.19.0-r31
- wolfi katib-suggestion-goptuna-compat (Wolfi): All versions (No fix recorded) \| \< 0.19.0-r40
- wolfi katib-suggestion-hyperband (Wolfi): \< 0.19.0-r31
- wolfi katib-suggestion-hyperopt (Wolfi): \< 0.19.0-r40 \| \< 0.19.0-r31
- wolfi katib-suggestion-nas-darts (Wolfi): \< 0.19.0-r31
- wolfi katib-suggestion-nas-enas (Wolfi): \< 0.19.0-r31
- wolfi katib-suggestion-optuna-enas (Wolfi): \< 0.19.0-r31
- wolfi katib-suggestion-pbt-enas (Wolfi): \< 0.19.0-r31
- wolfi katib-suggestion-skopt-enas (Wolfi): \< 0.19.0-r31

## References

- <https://github.com/angular/angular/security/advisories/GHSA-f3m7-gqxr-g87x>
- <https://github.com/angular/angular/pull/68689>
- <https://github.com/angular/angular/pull/68868>
- <https://ubuntu.com/security/CVE-2026-50557>
- <https://www.cve.org/CVERecord?id=CVE-2026-50557>
- <https://security-tracker.debian.org/tracker/CVE-2026-50557>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50557.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-50557>
- <https://github.com/angular/angular>

---

Data as of 2026-12-05T04:23:42.754Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
