{"schemaVersion":4,"id":"CVE-2026-75542","aliases":[],"status":"published","duplicateOf":null,"title":"OAuth token exchange grants repository scopes for organizations the principal cannot access","description":"Incorrect Authorization vulnerability in the OAuth token endpoint in hexpm hexpm allows an API key holding the repositories permission to read another organization's private packages.\n\nWhen an API key is exchanged for a token through the OAuth client_credentials grant, validate_scopes_against_key/2 in lib/hexpm_web/controllers/api/oauth_controller.ex admits a requested scope whenever the key carries the repositories permission and the scope string begins with repository:. The organization name is never resolved against the principal, and expand_repositories_scope/3 only rewrites the literal repositories scope, so an explicit repository:<name> passes through untouched. Both CDN edges authorize repository access from the token claim without querying the database, so the minted token is read access to that organization's private packages until it expires.\n\nThis issue affects hex.pm: from 2025-10-18 before 2026-08-24; hexpm/hexpm: from 71829cb6f6559bcceb1ef4e43a2fb8cdd3af654b before bf0fb9d208f0acfabf7a2f7467c8231659e322a8.","dates":{"published":"2026-08-24T20:14:30.191Z","modified":"2026-11-20T06:05:53.350Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.3,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":8.3,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.3,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/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.00542,"percentile":0.47035,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0.08200000000000005,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.0046},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00362,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00542,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00542,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00542,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00542,"percentile":0.47035}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00465,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00542,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00542,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00542,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00542,"percentile":0.47035}]},"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-863","name":"Incorrect Authorization","description":"The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/863.html"}],"affected":[{"vendor":"hexpm","product":"hexpm","name":"hexpm","label":"hexpm","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2025-10-18, < 2026-08-24","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"2025-10-18","startInclusive":true,"end":"2026-08-24","endInclusive":false}},{"text":"≥ 71829cb6f6559bcceb1ef4e43a2fb8cdd3af654b, < bf0fb9d208f0acfabf7a2f7467c8231659e322a8","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"71829cb6f6559bcceb1ef4e43a2fb8cdd3af654b","startInclusive":true,"end":"bf0fb9d208f0acfabf7a2f7467c8231659e322a8","endInclusive":false}}],"versionsText":"≥ 2025-10-18, < 2026-08-24 | ≥ 71829cb6f6559bcceb1ef4e43a2fb8cdd3af654b, < bf0fb9d208f0acfabf7a2f7467c8231659e322a8","eol":null,"hubHref":"/vendor/hexpm/hexpm"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/hexpm/hexpm/security/advisories/GHSA-rfx8-w654-8cpr","label":"github.com/hexpm/hexpm/security/advisories/GHSA-rfx8-w654-8cpr","hostname":"github.com","tags":["Vendor Advisory","Related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-75542.html","label":"cna.erlef.org/cves/CVE-2026-75542.html","hostname":"cna.erlef.org","tags":["Related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-75542","label":"osv.dev/vulnerability/EEF-CVE-2026-75542","hostname":"osv.dev","tags":["Related"]},{"url":"https://github.com/hexpm/hexpm/commit/bf0fb9d208f0acfabf7a2f7467c8231659e322a8","label":"github.com/hexpm/hexpm/commit/bf0fb9d208f0acfabf7a2f7467c8231659e322a8","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/hexpm/hexpm/commit/71829cb6f6559bcceb1ef4e43a2fb8cdd3af654b","label":"github.com/hexpm/hexpm/commit/71829cb6f6559bcceb1ef4e43a2fb8cdd3af654b","hostname":"github.com","tags":["Related"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-08-24T20:14:30.191Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-20T06:05:53.350Z","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,1,83],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00542,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-20T06:05:53.350Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N","version":"4.0","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-20T06:05:53.350Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/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","version":"4.0"},{"type":"adp","source":"cisa-adp","date":"2026-08-25T19:53:10.499Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.00542,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T06:02:28.822Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T06:02:29.295Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T06:02:29.506Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T06:00:56.363Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T06:02:27.202Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T06:02:26.240Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T07:03:44.695Z","stale":false,"partial":false}}