CVE-2026-21622
CVE-2026-21622 is a critical-severity vulnerability in Hex Hexpm with a CVSS 3.x base score of 9.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-613.
Key facts
- Severity: Critical (CVSS 3.x base score 9.8)
- CVSS v4: 9.5
- EPSS exploit prediction: 0% (39th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2026-9876
- Weakness: CWE-613
- Affected product: Hex Hexpm
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2026-21622?
- 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.
- How severe is CVE-2026-21622?
- CVE-2026-21622 has a CVSS 3.x base score of 9.8, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2026-21622 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (39th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-21622?
- CVE-2026-21622 affects Hex Hexpm. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2026-21622?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- Does CVE-2026-21622 have an EU (EUVD) identifier?
- Yes. CVE-2026-21622 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-9876.
- When was CVE-2026-21622 published?
- CVE-2026-21622 was published on 2026-03-05 and last updated on 2026-11-20.
References
- https://cna.erlef.org/cves/CVE-2026-21622.html
- https://github.com/hexpm/hexpm/commit/617e44c71f1dd9043870205f371d375c5c4d886d
- https://github.com/hexpm/hexpm/commit/bb0e42091995945deef10556f58d046a52eb7884
- https://github.com/hexpm/hexpm/security/advisories/GHSA-6r94-pvwf-mxqm
- https://osv.dev/vulnerability/EEF-CVE-2026-21622
Affected products (1)
- cpe:2.3:a:hex:hexpm:*:*:*:*:*:*:*:*
More vulnerabilities in Hex Hexpm
- CVE-2026-23939 — High (CVSS 7.5): Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in hexpm hexpm/hexpm…
- CVE-2026-23940 — Medium (CVSS 6.5): Uncontrolled Resource Consumption vulnerability in hexpm hexpm/hexpm allows Excessive Allocation. Publishing an…
- CVE-2026-21618 — Medium (CVSS 6.1): Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in hexpm…
- CVE-2026-21621 — Medium (CVSS 5.3): Incorrect Authorization vulnerability in hexpm hexpm/hexpm (HexpmWeb.API.OAuthController module) allows Privilege…
All CVEs affecting Hex Hexpm →
Other CWE-613 (Insufficient Session Expiration) vulnerabilities
- CVE-2024-8888 — Critical (CVSS 10.0): An attacker with access to the network where CIRCUTOR Q-SMT is located in its firmware version 1.0.4, could steal the…
- CVE-2026-132079 — Critical (CVSS 9.8): Insufficient Session Expiration vulnerability in the Apache Iggy Go SDK. The TCP client method…
- CVE-2026-110513 — Critical (CVSS 9.8): Insufficient Session Expiration vulnerability in the Apache Iggy server HTTP transport. A self-issued JSON Web Token…
- CVE-2025-49602 — Critical (CVSS 9.8): An issue was discovered in Keyfactor EJBCA 9. When an administrator is removed from its administrator role while having…
- CVE-2026-79624 — Critical (CVSS 9.8): Insufficient session expiration vulnerability in Apache Answer. This issue affects Apache Answer: through…
- CVE-2026-79313 — Critical (CVSS 9.8): webpy web.py 0.76 is vulnerable to Insufficient Session Expiration. The application's session management relies on…
Browse all CWE-613 (Insufficient Session Expiration) vulnerabilities →