CVE-2026-75542
Last modified
CVE-2026-75542 is a high-severity vulnerability rated 8.3/10 on the CVSS scale. 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. EPSS estimates a 0.36% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| hexpm | hexpm | >= 2025-10-18, < 2026-08-24 |
| hexpm | hexpm | >= 71829cb6f6559bcceb1ef4e43a2fb8cdd3af654b, < bf0fb9d208f0acfabf7a2f7467c8231659e322a8 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-75542?
How severe is CVE-2026-75542?
How do I fix CVE-2026-75542?
How Strix Helps
- Uncovering a hidden BOLA in Appsmith's snapshot logicStrix autonomously discovered a BOLA/IDOR vulnerability in Appsmith's snapshot deletion path.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-75528The Broken Link Checker plugin for WordPress is vulnerable t…7.2
- CVE-2026-75529Pandora is affected by a stored cross-site scripting vulnera…6.9
- CVE-2026-7553A vulnerability was found in code-projects Gym Management Sy…4.7
- CVE-2026-75531Pandora contains a stored cross-site scripting (XSS) vulnera…7
- CVE-2026-75538An attacker that connects to an open Erlang TCP port that us…8.2
- CVE-2026-7554A vulnerability was determined in D-Link M60 up to 1.20B02. …8.1
- CVE-2026-75548The affected Ebyte device web management interface does not …5.4
- CVE-2026-7555A vulnerability was identified in itsourcecode Electronic Ju…7.3
- CVE-2026-75554Insufficient Session Expiration vulnerability in the OAuth t…2.3
- CVE-2026-7556The FV Flowplayer Video Player plugin for WordPress is vulne…7.2
- CVE-2026-75569A flaw was found in mce-operator-bundle. The build process f…7.7
- CVE-2026-7557An improper verification of cryptographic signature vulnerab…9.1
Are you affected by CVE-2026-75542?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
