CVE-2021-42648Coder Code-server
Medium 6.1 No auth needed
Follow: this CVE · Coder · Coder Code-server We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 56
- Auth required
- No
- Published
- May 11, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
Cross-site scripting (XSS) vulnerability exists in Coder Code-Server before 3.12.0, allows attackers to execute arbitrary code via crafted URL.
What to do
- Apply the vendor's security update for Code-server.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | code-server |
< 3.12.0 |
3.12.0 |
npm install code-server@3.12.0 |
Per OSV / GitHub Advisories (GHSA-2gp3-6c9p-jp7w). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| coder | code-server | < 3.12.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Issue Tracking Patch