Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-75542— OAuth token exchange grants repository scopes for organizations the principal cannot access

Quick assessment

Affected
hexpm hexpm
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

hexpm OAuth 令牌端点存在权限控制错误漏洞 该漏洞存在于 hexpm 的 OAuth 令牌端点中,允许拥有 (仓库)权限的 API 密钥读取其他组织的私有包。 当通过 OAuth 的 授权模式将 API 密钥交换为令牌时, 文件中的 函数存在逻辑缺陷:只要密钥持有 权限,且请求的作用域字符串以 开头,该函数就会无条件接受该作用域。在此过程中,系统从未将组织名称与当前主体(principal)进行验证匹配;而 函数仅重写字面意义上的 作用域,因此类似 的显式作用域会原封不动地通过验证。 此外,CDN 边缘节

CVSS 8.3 · High EPSS 0.36% · P29

Possible ATT&CK Techniques 1 AI

T1078.004 · Cloud Accounts

Affected Version Matrix 2

VendorProduct Version RangeStatus
hexpm hexpm 2025-10-18< 2026-08-24 affected
71829cb6f6559bcceb1ef4e43a2fb8cdd3af654b< bf0fb9d208f0acfabf7a2f7467c8231659e322a8 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-75542

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
OAuth token exchange grants repository scopes for organizations the principal cannot access
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
授权机制不正确
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
hexpm hexpm 2025-10-18 ~ 2026-08-24 cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*
hexpm hexpm 71829cb6f6559bcceb1ef4e43a2fb8cdd3af654b ~ bf0fb9d208f0acfabf7a2f7467c8231659e322a8 cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*

II. Public POCs for CVE-2026-75542

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 9629 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-75542

登录查看更多情报信息。

Patches & Fixes for CVE-2026-75542 (1)

Vendor Advisories for CVE-2026-75542 (2)

Other References for CVE-2026-75542 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-75542

No comments yet


Leave a comment