Intel

AIKIDO-2025-10284

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

CVE-2025-47269Published May 3, 2025
May 3, 2025

65

CVE Score

Medium

Server-Side Request Forgery (SSRF)

Are you affected? Scan for Free

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.

How do I fix this?

Upgrade the code-server library to the patch version.

Who does this affect?

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

Package

code-server

Versions

4.93.1 - 4.99.3

Fixed in 4.99.4

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea