{"schemaVersion":4,"id":"CVE-2026-126308","aliases":["CGA-3vp3-xg5w-wwjc","CGA-h9jq-g8rf-mh3m","CGA-phpp-5xpq-6cr8","CGA-xw4c-458x-54vv"],"status":"published","duplicateOf":null,"title":"Coder 2.38.0 before 2.38.2 Session Token Leak via Sub-Agent External Apps","description":"The web dashboard in Coder 2.24.0 before 2.29.23, 2.30.0 before 2.34.14, 2.35.0 before 2.36.9, 2.37.0 before 2.37.6, and 2.38.0 before 2.38.2 replaces the $SESSION_TOKEN placeholder in external app URLs with a full-access API key without checking whether the app belongs to a sub-agent. Code running in a workspace can register a disguised sub-agent app with a custom protocol URL, so the owner's click sends their API key to an attacker-chosen destination.","dates":{"published":"2026-11-13T09:36:20.400Z","modified":"2026-11-18T16:20:24.189Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.7,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.7,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.7,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N","exploitability":null,"impact":null,"computed":true}]},"epss":{"probability":0.00333,"percentile":0.28498,"severity":"low","asOf":"2026-12-05T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-13T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00333,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00333,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00333,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00333,"percentile":null},{"date":"2026-12-05T00:00:00.000Z","score":0.00333,"percentile":0.28498}],"last30":[{"date":"2026-11-13T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00311,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00333,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00333,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00333,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00333,"percentile":null},{"date":"2026-12-05T00:00:00.000Z","score":0.00333,"percentile":0.28498}]},"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-201","name":"Insertion of Sensitive Information Into Sent Data","description":"The code transmits data to another actor, but a portion of the data includes sensitive information that should not be accessible to that actor.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/201.html"}],"affected":[{"vendor":"chainguard","product":"coder-2.32","name":"coder-2.32","label":"coder-2.32","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/coder-2.32","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":"coder-2.33","name":"coder-2.33","label":"coder-2.33","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/coder-2.33","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":"coder","name":"coder","label":"coder","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.38.0, < 2.38.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"2.38.0","startInclusive":true,"end":"2.38.2","endInclusive":false}},{"text":"≥ 2.37.0, < 2.37.6","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"2.37.0","startInclusive":true,"end":"2.37.6","endInclusive":false}},{"text":"≥ 2.36.0, < 2.36.9","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"2.36.0","startInclusive":true,"end":"2.36.9","endInclusive":false}},{"text":"≥ 2.30.0, < 2.34.14","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"2.30.0","startInclusive":true,"end":"2.34.14","endInclusive":false}},{"text":"≥ 2.24.0, < 2.29.23","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"2.24.0","startInclusive":true,"end":"2.29.23","endInclusive":false}},{"text":"≥ 2.35.0, < 2.36.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"2.35.0","startInclusive":true,"end":"2.36.0","endInclusive":false}}],"versionsText":"≥ 2.38.0, < 2.38.2 | ≥ 2.37.0, < 2.37.6 | ≥ 2.36.0, < 2.36.9 | ≥ 2.30.0, < 2.34.14 | ≥ 2.24.0, < 2.29.23 | ≥ 2.35.0, < 2.36.0","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"coder","label":"Coder","category":"server-app"}},"hubHref":"/vendor/coder/coder"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/coder/coder/security/advisories/GHSA-2x8w-q434-f76p","label":"github.com/coder/coder/security/advisories/GHSA-2x8w-q434-f76p","hostname":"github.com","tags":["Vendor Advisory","Advisory"]},{"url":"https://www.vulncheck.com/advisories/coder-2.38.0-before-2.38.2-session-token-leak-via-sub-agent-external-apps","label":"www.vulncheck.com/advisories/…","hostname":"www.vulncheck.com","tags":["Third Party Advisory","Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126308.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126308.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126308","label":"nvd.nist.gov/vuln/detail/CVE-2026-126308","hostname":"nvd.nist.gov","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-13T09:36:20.400Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-18T16:20:24.189Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 8.7, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,87],"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.00333,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-18T16:20:24.189Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.7,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N","version":"4.0","headline":true},{"type":"cvss","source":"cve.org","date":"2026-11-18T16:20:24.189Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-11-18T16:20:24.189Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.7,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","version":"4.0"},{"type":"cvss","source":"nvd","date":"2026-11-18T16:20:24.189Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","version":"3.1"},{"type":"cvss","source":"osv_chainguard","date":"2026-11-18T16:20:24.189Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.7,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N","version":"4.0"},{"type":"adp","source":"cisa-adp","date":"2026-11-18T16:20:15.736Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00333,"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:38:50.039Z","stale":false,"partial":false}}