Intel

AIKIDO-2025-10284

code-server is vulnerable to Server-Side Request Forgery (SSRF)

Server-Side Request Forgery (SSRF)CVE-2025-47269

65

Medium Risk

This Affects:

oscode-server
4.93.1 - 4.99.3
Fixed in 4.99.4

TL;DR

Affected versions of this package fail to properly validate that ports in the path proxy are numerical, allowing an attacker to manipulate the proxy target. The vulnerable code constructs a proxy URL without sanitizing req.params.port, enabling an attacker to inject malicious input (e.g., a domain instead of a port) and redirect traffic to an arbitrary domain. It could lead to server-side request forgery (SSRF) or data exfiltration by proxying traffic to an attacker-controlled server.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

code-server is vulnerable to Server-Side Request Forgery (SSRF) in versions 4.93.1 - 4.99.3.

How to fix this

Upgrade the code-server library to the patch version.