目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-21621— Hexpm 安全漏洞

一分钟漏洞结论

影响对象
hexpm hexpm
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

Hexpm是Hex开源的一个Web页面和接口。 Hexpm存在安全漏洞,该漏洞源于授权不当,可能导致权限提升。

AI 预测 8.8 利用难度: 困难 EPSS 0.32% · P23

可能的 ATT&CK 技术 1 AI

T1078.004 · Cloud Accounts
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-21621 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
Improper Scope Enforcement in OAuth client_credentials Flow Allows Read-Only API Key to Escalate to Full Access
来源: CVE Program / CVE List V5
Vulnerability Description
Incorrect Authorization vulnerability in hexpm hexpm/hexpm ('Elixir.HexpmWeb.API.OAuthController' module) allows Privilege Escalation. An API key created with read-only permissions (domain: "api", resource: "read") can be escalated to full write access under specific conditions. When exchanging a read-only API key via the OAuth client_credentials grant, the resource qualifier is ignored. The resulting JWT receives the broad "api" scope instead of the expected "api:read" scope. This token is therefore treated as having full API access. If an attacker is able to obtain a victim's read-only API key and a valid 2FA (TOTP) code for the victim account, they can use the incorrectly scoped JWT to create a new full-access API key with unrestricted API permissions that does not expire by default and can perform write operations such as publishing, retiring, or modifying packages. This vulnerability is associated with program files lib/hexpm_web/controllers/api/oauth_controller.ex and program routines 'Elixir.HexpmWeb.API.OAuthController':validate_scopes_against_key/2. This issue affects hexpm: from 71829cb6f6559bcceb1ef4e43a2fb8cdd3af654b before 71c127afebb7ed7cc637eb231b98feb802d62999.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:H/SA:N
来源: CVE Program / CVE List V5
Vulnerability Type
授权机制不正确
来源: CVE Program / CVE List V5
Vulnerability Title
Hexpm 安全漏洞
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Description
Hexpm是Hex开源的一个Web页面和接口。 Hexpm存在安全漏洞,该漏洞源于授权不当,可能导致权限提升。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
hexpm hexpm 71829cb6f6559bcceb1ef4e43a2fb8cdd3af654b ~ 71c127afebb7ed7cc637eb231b98feb802d62999 cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*
hexpm hex.pm 2025-08-18 ~ 2026-03-05 -

二、漏洞 CVE-2026-21621 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-21621 的情报信息

请登录查看更多情报信息。

CVE-2026-21621 补丁与修复 (1)

CVE-2026-21621 厂商安全公告 (3)

IV. Related Vulnerabilities

V. Comments for CVE-2026-21621

暂无评论


发表评论