CVE-2021-42648
JavaScript vulnerability analysis and mitigation

Overview

Cross-site scripting (XSS) vulnerability exists in Coder Code-Server before version 3.12.0, identified as CVE-2021-42648. The vulnerability was disclosed on May 11, 2022, and affects the code-server application, allowing attackers to execute arbitrary code via crafted URLs (NVD).

Technical details

The vulnerability is classified as a Cross-Site Scripting (XSS) issue with a CVSS v3.1 base score of 6.1 (Medium). The attack vector is Network-based (AV:N), with Low attack complexity (AC:L), requiring no privileges (PR:N) but does need user interaction (UI:R). The scope is changed (S:C), with Low impact on both confidentiality and integrity (C:L, I:L), and no impact on availability (A:N) (NVD).

Impact

If exploited, this vulnerability allows attackers to execute arbitrary code through crafted URLs, potentially leading to unauthorized access to sensitive information and compromise of user sessions. The vulnerability affects both confidentiality and integrity of the system, though with low severity (NVD).

Mitigation and workarounds

The primary mitigation is to upgrade Code-Server to version 3.12.0 or later, which contains the fix for this vulnerability (NVD).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23744CRITICAL9.8
  • JavaScriptJavaScript
  • @mcpjam/inspector
NoYesJan 16, 2026
CVE-2026-23735HIGH8.7
  • JavaScriptJavaScript
  • graphql-modules
NoYesJan 16, 2026
GHSA-gw32-9rmw-qwwwHIGH8.4
  • JavaScriptJavaScript
  • svelte
NoYesJan 16, 2026
CVE-2026-23745HIGH8.2
  • JavaScriptJavaScript
  • argo-workflows-fips-3.6
NoYesJan 16, 2026
GHSA-38cw-85xc-xr9xMEDIUM6.8
  • JavaScriptJavaScript
  • @veramo/data-store
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management