CVE-2026-75542
OAuth token exchange grants repository scopes for organizations the principal cannot access
Mitigation
- Upgrade hexpm to 2026-08-24 or later.
Who should check
- Anyone running hexpm >= 2025-10-18, < 2026-08-24
- Anyone running hexpm >= 71829cb6f6559bcceb1ef4e43a2fb8cdd3af654b, < bf0fb9d208f0acfabf7a2f7467c8231659e322a8
Vulnerability facts
- Affected
- hexpm >= 2025-10-18, < 2026-08-24; hexpm >= 71829cb6f6559bcceb1ef4e43a2fb8cdd3af654b, < bf0fb9d208f0acfabf7a2f7467c8231659e322a8
- Fixed in
- hexpm 2026-08-24
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 8.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: Low
- User interaction: None
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- Confidentiality impact on other systems: High
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.46% chance of exploitation in 30 days (percentile 32, 2026-11-26)
- CWE
- CWE-863
- Modified
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. When 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. This issue affects hex.pm: from 2025-10-18 before 2026-08-24; hexpm/hexpm: from 71829cb6f6559bcceb1ef4e43a2fb8cdd3af654b before bf0fb9d208f0acfabf7a2f7467c8231659e322a8.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-75542. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-75542.md Affected: hexpm >= 2025-10-18, < 2026-08-24; hexpm >= 71829cb6f6559bcceb1ef4e43a2fb8cdd3af654b, < bf0fb9d208f0acfabf7a2f7467c8231659e322a8 Fixed in: hexpm 2026-08-24 Steps: 1. Search this machine and project for hexpm: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-75542 being exploited?
There is no confirmed exploitation: CVE-2026-75542 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.46% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-75542?
High: CVSS 8.3 (v4.0, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2026-75542?
hexpm >= 2025-10-18, < 2026-08-24; hexpm >= 71829cb6f6559bcceb1ef4e43a2fb8cdd3af654b, < bf0fb9d208f0acfabf7a2f7467c8231659e322a8.
Is there a fix for CVE-2026-75542?
Yes. Fixed in hexpm 2026-08-24. Upgrade hexpm to 2026-08-24 or later.
How do I check if I'm affected by CVE-2026-75542?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.