# CVE-2021-42648

- Priority: **Routine**
- Reason: Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-05-11 · Modified: 2024-08-04
- Aliases: CGA-572x-2w4h-cwg4, CGA-9f96-wg62-vhh5, CGA-hgjx-qpmc-h7cp, CGA-jqp6-xghm-vfjq, GHSA-2gp3-6c9p-jp7w
- Record: https://cvemate.com/vulnerability/CVE-2021-42648 · JSON: https://cvemate.com/vulnerability/CVE-2021-42648/json

## Description

```text
Cross-site scripting (XSS) vulnerability exists in Coder Code-Server before 3.12.0, allows attackers to execute arbitrary code via crafted URL.
```

## 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.869%, percentile 60.057%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- chainguard code-server (Chainguard): All versions (No fix recorded)
- chainguard code-server-compat (Chainguard): All versions (No fix recorded)
- wolfi code-server (Wolfi): All versions (No fix recorded)
- wolfi code-server-compat (Wolfi): All versions (No fix recorded)
- coder code-server: \< 3.12.0
- Npm code-server (Npm): \< 3.12.0

## References

- <https://github.com/cdr/code-server/issues/4355>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-42648>
- <https://github.com/coder/code-server/pull/4430>
- <https://github.com/coder/code-server>

---

Data as of 2026-12-05T14:48:49.607Z. 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
