CVE-2025-47269 code-server session cookie can be extracted by having user visit specially crafted proxy URL

High 8.3 Published Updated

Attackers can steal session cookies via SSRF in the proxy feature, allowing full access to the host machine if the proxy is enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-47269?

CVE-2025-47269 is a high-severity server-side request forgery vulnerability in coder code-server, published on 9 May 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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/[email protected]/path` would be proxied to `[email protected]/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.

Weakness: CWE-441

Which versions are affected by CVE-2025-47269?

2 open source packages ship an affected version, including code-server.

PackageAffectedFixed in
code-server npmAll versions4.99.4
code-server npmAll versions4.99.4

How do I fix CVE-2025-47269?

Upgrade code-server to 4.99.4 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2025-47269 being exploited?

There is no known exploitation of CVE-2025-47269 in the wild and no public exploit code.

Sources

Also known as GHSA-p483-wpfp-42cj, JLSEC-2026-1274.

Is CVE-2025-47269 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free