Medium severity · published May 11, 2022
CVE-2021-42648
Cross-site scripting (XSS) vulnerability exists in Coder Code-Server before 3.12.0, allows attackers to execute arbitrary code via crafted URL
6.1
CVSS
0.9%
EPSS
No
On KEV
Description
Cross-site scripting (XSS) vulnerability exists in Coder Code-Server before 3.12.0, allows attackers to execute arbitrary code via crafted URL.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.9% · higher than 59% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CO
Code-server · Coder
before 3.12.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-42648
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-42648
Exploit
https://github.com/cdr/code-server/issues/4355
More from Code-server
9.3
CVE-2023-26114
Versions of the package code-server before 4.10.1 are vulnerable to Missing Origin Validation in WebSockets handshakes
8.3
CVE-2025-47269
code-server session cookie can be extracted by having user visit specially crafted proxy URL
7.5
CVE-2021-3810
code-server is vulnerable to Inefficient Regular Expression Complexity
