CVE-2021-42648: coder code-server Cross-site Scripting
CVSS: 6.1v3.1MediumModified
AliasesCGA-572x-2w4h-cwg4CGA-9f96-wg62-vhh5CGA-hgjx-qpmc-h7cpCGA-jqp6-xghm-vfjqGHSA-2gp3-6c9p-jp7w
Published 11-05-2022Last modified 04-08-2024
Vulnerability summary
CVE-2021-42648 is a medium (CVSS 6.1) Cross-site Scripting vulnerability in coder code-server. EPSS estimates a 0.87% chance of exploitation in the next 30 days, higher than 58% of scored vulnerabilities. 1 public exploit is recorded.
CVSS score
6.1/10
010
Medium · v3.1 (NVD)EPSS score
0.87%
0%100%
Low · +0.06 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 11-05-2022PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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 metrics
5 scores · 4 sources · 2 versionsMedium 6.1Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NSourcesAll 4 agree
- OSV · WolfiEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · NpmEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · ChainguardEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Medium 4.3Preferred score · NVD (NIST)
AV:N/AC:M/Au:N/C:N/I:P/A:NSourcesSingle source
EPSS trend
Probability
0.87%
Chance of exploitation in the next 30 days
Percentile
58%
Versus all other CVEs
30-day change
+0.06 pp
From 0.81% on 19-09-2026
19-09-202619-10-2026
EPSS score0.87%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundCode Server
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Chainguard2 products
- code-serverAll versions (No fix recorded)
- code-server-compatAll versions (No fix recorded)
Wolfi2 products
- code-serverAll versions (No fix recorded)
- code-server-compatAll versions (No fix recorded)
Coder1 product
- code-server< 3.12.0
Npm1 product
- code-server< 3.12.0
4 vendors · 6 products
References
4 links- github.com/cdr/code-server/issues/4355X Refsource MISCFIXWEBExploitIssue TrackingPatchThird Party Advisory
- github.com/coder/code-serverPACKAGE