BreachSpiderVerified, not vibes

CVE-2026-21622 in Hexpm

Critical 9.8

Insufficient Session Expiration vulnerability in hexpm hexpm/hexpm (Hexpm.Accounts.PasswordReset module) allows Account Takeover. Password reset tokens generated via the "Reset your password" flow do not expire. When a user requests a password reset, Hex sends an email containing a reset link with a token. This tok...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.19.8
CVSS v49.5
EPSS0.8%
EPSS percentile52th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Hex Hexpm ≥ 2025-10-01, < 2026-03-05

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

Insufficient Session Expiration vulnerability in hexpm hexpm/hexpm (Hexpm.Accounts.PasswordReset module) allows Account Takeover. Password reset tokens generated via the "Reset your password" flow do not expire. When a user requests a password reset, Hex sends an email containing a reset link with a token. This token remains valid indefinitely until used. There is no time-based expiration enforced. If a user's historical emails are exposed through a data breach (e.g., a leaked mailbox archive), any unused password reset email contained in that dataset could be used by an attacker to reset the victim's password. The attacker does not need current access to the victim's email account, only access to a previously leaked copy of the reset email. This vulnerability is associated with program files lib/hexpm/accounts/password_reset.ex and program routines Hexpm.Accounts.PasswordReset.can_reset?/3. This issue affects hex.pm: from 2025-08-01 before 2026-03-05; hexpm/hexpm: from 617e44c71f1dd9043870205f371d375c5c4d886d before bb0e42091995945deef10556f58d046a52eb7884.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-21622
BreachSpider IDBS-2026-GLOBAL-065407-C
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2026-03-05
Last modified2026-11-20
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-613: CWE-613

Analysis AI-written, not human-reviewed

A critical vulnerability in the hexpm/hexpm ('Elixir.Hexpm.Accounts.PasswordReset' module) allows for account takeover due to the absence of session expiration for password reset tokens.

An attacker can intercept the password reset email and use the token at any time in the future to reset the user's password, as there is no expiration mechanism for these tokens.

Questions

What is CVE-2026-21622?

A critical vulnerability in the hexpm/hexpm ('Elixir.Hexpm.Accounts.PasswordReset' module) allows for account takeover due to the absence of session expiration for password reset tokens.

What is the CVSS score for CVE-2026-21622?

CVE-2026-21622 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.8%.

Is CVE-2026-21622 actively exploited?

No confirmed active exploitation of CVE-2026-21622 as of 2026-11-21.

How do I remediate CVE-2026-21622?

Priority: IMMEDIATE.

What systems are affected by CVE-2026-21622?

CVE-2026-21622 affects Hex Hexpm.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Hex","product":"Hexpm","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-11-20.