Server-side Request Forgery (SSRF) Affecting code-server package, versions <4.99.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (13th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-CODESERVER-10118297
  • published14 May 2025
  • disclosed9 May 2025
  • creditUnknown

Introduced: 9 May 2025

CVE-2025-47269  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade code-server to version 4.99.4 or higher.

Overview

code-server is an application that allows running VS Code on a remote server.

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the proxy subpath. An attacker can gain unauthorized access to session tokens by crafting a malicious URL that manipulates the proxy functionality to redirect to an arbitrary domain. This occurs due to improper validation of an expected local proxy port for requests, allowing proxying to an arbitrary domain.

Note: This vulnerability requires the built-in proxy in the Code-Server to be enabled

CVSS Base Scores

version 4.0
version 3.1