{"schemaVersion":3,"id":"CVE-2026-86698","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"Insufficient Session Expiration vulnerability in OAuth token issuance in hexpm hexpm allows a user whose organization membership or session has ended to keep reading the organization's private packages and their documentation tarballs via a retained refresh token.\n\ngenerate_refresh_token/4 in lib/hexpm/oauth/jwt.ex signs the refresh token with the same iss, aud and scope claims as the access token, so it carries the same repository:<org> scopes. The CDN service that serves private repositories verifies the signature and time claims and then authorizes from the scope claim, with no database lookup and no way to tell the two token kinds apart. Removing a member or revoking a session therefore takes effect at the CDN only when the 30 day refresh token expires, instead of after the 30 minute access token lifetime. Access is read-only and limited to organizations the account belonged to when the token was granted.\n\nThis issue affects hex.pm: from 2025-10-10 before 2026-09-22.","dates":{"published":"2026-09-22T15:51:57.998Z","modified":"2026-09-22T18:09:08.676Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":2.3,"severity":"low","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":2.3,"severity":"low","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":2.3,"severity":"low","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/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}]},"epss":{"probability":0.00427,"percentile":0.35547,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-09-23T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00427,"percentile":0.35547}],"last30":[{"date":"2026-09-23T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00427,"percentile":0.35547}]},"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-613","name":"Insufficient Session Expiration","description":"According to WASC, \"Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization.\"","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/613.html"}],"affected":[{"vendor":"hexpm","product":"hexpm","name":"hexpm","label":"hexpm","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2025-10-10, < 2026-09-22","noFixRecorded":false,"fixedIn":null},{"text":"≥ 650faa03af511e74c1b3b49ec12d35666b6984c4, < db58cf3a86c7639708ef52ff86de0b4f938e6360","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2025-10-10, < 2026-09-22 | ≥ 650faa03af511e74c1b3b49ec12d35666b6984c4, < db58cf3a86c7639708ef52ff86de0b4f938e6360","eol":null,"hubHref":"/vendor/hexpm/hexpm"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/hexpm/hexpm/security/advisories/GHSA-vmw7-7g2w-gw2f","label":"github.com/hexpm/hexpm/security/advisories/GHSA-vmw7-7g2w-gw2f","hostname":"github.com","tags":["Vendor Advisory","Related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-86698.html","label":"cna.erlef.org/cves/CVE-2026-86698.html","hostname":"cna.erlef.org","tags":["Related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-86698","label":"osv.dev/vulnerability/EEF-CVE-2026-86698","hostname":"osv.dev","tags":["Related"]},{"url":"https://github.com/hexpm/hexpm/commit/650faa03af511e74c1b3b49ec12d35666b6984c4","label":"github.com/hexpm/hexpm/commit/650faa03af511e74c1b3b49ec12d35666b6984c4","hostname":"github.com","tags":["Related"]},{"url":"https://github.com/hexpm/hexpm/commit/db58cf3a86c7639708ef52ff86de0b4f938e6360","label":"github.com/hexpm/hexpm/commit/db58cf3a86c7639708ef52ff86de0b4f938e6360","hostname":"github.com","tags":["Patch"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-09-22T15:51:57.998Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-22T18:09:08.676Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":9,"level":"minimal","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T08:21:17.253Z","stale":false,"partial":false}}