CVE-2026-21621: hexpm · Incorrect Authorization
Affects hexpmSource CVE Database V5
Not known to be exploited · CVSS 7.0 High : upgrade to 2026-03-05 soon.
Data as of 20 Nov 2026, 03:37 UTC
Thin evidence
One scorer or none| CNA (EEF) | CVSS 4.0 | 7.0 |
|---|
- CISA SSVC
- Exploitation
- No evidence of active exploitation and no public proof of concept
- Automatable
- Attackers cannot reliably automate steps 1–4 of the kill chain
- Technical impact
- Limited control over the software or limited information exposure
CISA SSVC assessment, 2026-03-06.
- Patch
- Available – fixed in 2026-03-05, 71c127afebb7ed7cc637eb231b98feb802d62999
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:H/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 5 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 19 Nov 2026.
What to do
Upgrade hexpm and hex.pm to 2026-03-05; hexpm to 71c127afebb7ed7cc637eb231b98feb802d62999.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| hexpmhex.pm | Affected
| Fixed in
|
| hexpmhexpm/hexpm | Affected
| Fixed in
|
Hexhex.pmpkg:hex/hex.pmOther threats | Affected
| Fixed in
|
CPE configurations (1)
cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix for this vulnerability is available and was applied in hexpm version 2026-03-05 (commit 71c127afebb7ed7cc637eb231b98feb802d62999). Users should upgrade to this version or later to remediate the issue. No additional mitigation steps are indicated beyond applying the official patch.
Description
CVE-2026-21621 is an incorrect authorization vulnerability in hexpm's OAuthController that allows privilege escalation. A read-only API key can be escalated to full write access when exchanged via the OAuth client_credentials grant due to improper scope validation. An attacker with a victim's read-only API key and valid 2FA code can create a new full-access API key with unrestricted permissions. This vulnerability affects hexpm versions from 2025-08-18 up to but not including 2026-03-05 and has been fixed in version 2026-03-05.
References
- github.com/hexpm/hexpm/security/advisories/GHSA-739m-8727-j6w3 (opens in a new tab)
- cna.erlef.org/cves/CVE-2026-21621.html (opens in a new tab)
- osv.dev/vulnerability/EEF-CVE-2026-21621 (opens in a new tab)
- github.com/hexpm/hexpm/commit/71829cb6f6559bcceb1ef4e43a2fb8cdd3af654b (opens in a new tab)
- github.com/hexpm/hexpm/commit/71c127afebb7ed7cc637eb231b98feb802d62999 (opens in a new tab)