CVE-2026-21622
published critical CVSS 4.0 · 9.5Password Reset Tokens Do Not Expire
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| hexpm | — | hex.pmhexpm · 2025-08-01 to < 2026-03-05 · Other versions: unaffected | Affected | Not stated | EEF |
| hexpm | — | hexpm/hexpmhexpm · 617e44c71f1dd9043870205f371d375c5c4d886d to < bb0e42091995945deef10556f58d046a52eb7884 · Other versions: unaffected | Affected | Not stated | EEF |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.5 / 10
- Severity
- critical
- Provider
- EEF · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| hexpm | hexpm | 2025-08-01 to < 2026-03-05 (affected · date)Default: unaffected | EEF · cna |
| hexpm | hexpm | 617e44c71f1dd9043870205f371d375c5c4d886d to < bb0e42091995945deef10556f58d046a52eb7884 (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-613 CWE-613 DEPRECATED: Insufficient Session Expiration
References
5- EEF CNA record for CVE-2026-21622 https://cna.erlef.org/cves/CVE-2026-21622.html
- Introducing commit 617e44c in hexpm/hexpm https://github.com/hexpm/hexpm/commit/617e44c71f1dd9043870205f371d375c5c4d886d
- Fix commit bb0e420 in hexpm/hexpm https://github.com/hexpm/hexpm/commit/bb0e42091995945deef10556f58d046a52eb7884
- Password Reset Tokens Do Not Expire https://github.com/hexpm/hexpm/security/advisories/GHSA-6r94-pvwf-mxqm
- OSV record EEF-CVE-2026-21622 https://osv.dev/vulnerability/EEF-CVE-2026-21622
Provider assertions
2EEF · cna
Password Reset Tokens Do Not Expire
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8b40e450e73208c681c9c6e7bbd5a622b5b25b5df50594827309dc05b05eea0e
- Ingested
- 20 Nov 2026, 03:20:29 UTC
- Source record
- Official CVE record