Skip to main content
VulnerabilityPublished Updated

CVE-2026-21621: hexpm · Incorrect Authorization

Affects hexpmSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 7.0 High : upgrade to 2026-03-05 soon.

Data as of 20 Nov 2026, 03:37 UTC

CVSS 4.0 base score
7.0High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (EEF)CVSS 4.07.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
hexpmhex.pmAffected
  • >=2025-08-18 <2026-03-05
Fixed in
  • 2026-03-05
hexpmhexpm/hexpmAffected
  • ≥ 71829cb6f6559bcceb1ef4e43a2fb8cdd3af654b, < 71c127afebb7ed7cc637eb231b98feb802d62999
Fixed in
  • 71c127afebb7ed7cc637eb231b98feb802d62999
Hexhex.pmpkg:hex/hex.pmOther threatsAffected
  • >=2025-08-18 <2026-03-05
Fixed in
  • 2026-03-05

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

Community reviews

Loading reviews…