# CVE-2026-21622: Password Reset Tokens Do Not Expire

- Severity: Critical 9.5 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 52% of CVEs (2026-11-30)
- Published: 2026-03-05T21:18:03.883Z
- Modified: 2026-11-25T06:30:21.649Z
- Also known as: EEF-CVE-2026-21622, GHSA-6r94-pvwf-mxqm
- Weaknesses: CWE-613
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- hex.pm: from 2025-08-01 before 2026-03-05
- hexpm/hexpm: from 617e44c71f1dd9043870205f371d375c5c4d886d before bb0e42091995945deef10556f58d046a52eb7884
- https://github.com/hexpm/hexpm: from 617e44c71f1dd9043870205f371d375c5c4d886d before bb0e42091995945deef10556f58d046a52eb7884
- hex hexpm: from 2025-10-01 before 2026-03-05

## Every score

- EEF: CVSS:4.0 9.5 Critical `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/hexpm/hexpm/security/advisories/GHSA-6r94-pvwf-mxqm> (advisory, patch, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-21622.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-21622> (related)
- <https://github.com/hexpm/hexpm/commit/617e44c71f1dd9043870205f371d375c5c4d886d> (related, web)
- <https://github.com/hexpm/hexpm/commit/bb0e42091995945deef10556f58d046a52eb7884> (fix, patch)

## Sources

- CVE List: [CVE-2026-21622](https://www.cve.org/CVERecord?id=CVE-2026-21622), CVE Terms of Use, modified 2026-11-20
- Erlang Ecosystem Foundation: [EEF-CVE-2026-21622](https://osv.dev/vulnerability/EEF-CVE-2026-21622), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-21622](https://nvd.nist.gov/vuln/detail/CVE-2026-21622), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-21622 · Whole record: https://cve.day/CVE-2026-21622.json · Rebuilt by cve.day 2026-11-25T22:59:15.343Z
