Password Reset Tokens Do Not Expire
CVE-2026-21622Published 5 Mar 2026, 21:18 UTC
Real-world risk
3.1/ 10Low
Routine
If the vulnerable configuration applies to you: 6.8
PreliminaryFrom the CVSS vector only · confidence low
CVSS
9.5
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from EEF)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| hexpmNiche | >= 2025-08-01, < 2026-03-05 | 2026-03-05 |
What to do
Update to a fixed version: 2026-03-05.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.5% chance of exploitation in 30 days (percentile 41), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T1: Nothing known0.850
- 10 × impact 0.8 × prerequisites 0.45 × threat 0.853.060
- Rounded to one decimal between 0.1 and 103.1
Exploitation and evidence timeline
- 5 Mar 2026 Published
- 3 Dec 2026 Risk 3.1 (cvss fallback)
Weakness
CWE-613
References
- https://github.com/hexpm/hexpm/security/advisories/GHSA-6r94-pvwf-mxqmrelated, vendor-advisory
- https://cna.erlef.org/cves/CVE-2026-21622.htmlrelated
- https://osv.dev/vulnerability/EEF-CVE-2026-21622related
- https://github.com/hexpm/hexpm/commit/617e44c71f1dd9043870205f371d375c5c4d886drelated
- https://github.com/hexpm/hexpm/commit/bb0e42091995945deef10556f58d046a52eb7884patch
- CVE-2026-21622 on CVE.org