CVE-2021-42648
MEDIUM 6.1CVSS 3.1Cross site scripting in code-server
Cross-site scripting (XSS) vulnerability exists in Coder Code-Server before 3.12.0, allows attackers to execute arbitrary code via crafted URL.
- Published
- 11 May 2022
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-2gp3-6c9p-jp7w
- Sources
- NVDJSONOSV GHSA-2gp3-6c9p-jp7wJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | coder | code-servercpe:2.3:a:coder:code-server:*:*:*:*:*:*:*:* |
< 3.12.0 | 3.12.0 |
| OSV | npm | code-server | < 3.12.0 | 3.12.0 |
References
- https://github.com/cdr/code-server/issues/4355 · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-42648 · ADVISORY
- https://github.com/coder/code-server/pull/4430 · WEB
- https://github.com/coder/code-server · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 11 May 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 12 May 2022)