Description
Insufficient Session Expiration vulnerability in hexpm hexpm/hexpm ('Elixir.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 'Elixir.Hexpm.Accounts.PasswordReset':can_reset?/3.

This issue affects hexpm: from 617e44c71f1dd9043870205f371d375c5c4d886d before bb0e42091995945deef10556f58d046a52eb7884.
Published: 2026-03-05
Score: 9.5 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Account Takeover via unused password reset token
Action: Patch Now
AI Analysis

Impact

Password reset tokens generated by Hex.pm’s password reset flow are never automatically invalidated after creation. When a user initiates a reset, an e‑mail containing a token is sent and that token remains usable indefinitely until it is consumed. If an attacker obtains a historic copy of such an e‑mail, for example through a leaked mailbox archive, the attacker can use the stored token to reset the victim’s password without needing access to the victim's current email account. This capability gives the attacker control over the account, allowing complete takeover with full access to all of the victim’s data and privileges.

Affected Systems

This vulnerability affects the Hex.pm platform, specifically the hexpm/hexpm repository. All releases built from commit 617e44c71f1dd9043870205f371d375c5c4d886d and earlier are vulnerable. The issue is resolved in the commit bb0e42091995945deef10556f58d046a52eb7884 and any subsequent release.

Risk and Exploitability

With a CVSS score of 9.5 the vulnerability is classified as critical. However, the EPSS score is below 1 % and the vulnerability is not listed in CISA’s KEV catalog, indicating a low current likelihood of exploitation. The attack path is straightforward once an attacker has accessed a leaked password‑reset email; they need only click the token link to change the password and assume the account. The risk remains high if such e‑mails are exposed, and recovery depends on the organization’s ability to update the software quickly.

Generated by OpenCVE AI on April 15, 2026 at 19:54 UTC.

Remediation

Vendor Workaround

Users who suspect email exposure should: * Immediately reset their password. * Enable and enforce 2FA. There is no complete mitigation without implementing token expiration.


OpenCVE Recommended Actions

  • Upgrade Hex.pm to a version derived from commit bb0e42091995945deef10556f58d046a52eb7884 or later, which implements token expiration and removes the flaw.
  • If an immediate upgrade is not possible, users who suspect their reset emails have been exposed should reset their password immediately to invalidate the old token.
  • Enable and enforce two‑factor authentication for all accounts to add a second layer of defense against unauthorized access following a password change.

Generated by OpenCVE AI on April 15, 2026 at 19:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 06 Apr 2026 16:45:00 +0000


Thu, 19 Mar 2026 20:00:00 +0000

Type Values Removed Values Added
First Time appeared Hex
Hex hexpm
CPEs cpe:2.3:a:sixcolors:hexpm:*:*:*:*:*:*:*:* cpe:2.3:a:hex:hexpm:*:*:*:*:*:*:*:*
Vendors & Products Sixcolors
Sixcolors hexpm
Hex
Hex hexpm

Tue, 17 Mar 2026 18:30:00 +0000

Type Values Removed Values Added
First Time appeared Sixcolors
Sixcolors hexpm
CPEs cpe:2.3:a:sixcolors:hexpm:*:*:*:*:*:*:*:*
Vendors & Products Sixcolors
Sixcolors hexpm
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Tue, 10 Mar 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 05 Mar 2026 21:30:00 +0000

Type Values Removed Values Added
Description Insufficient Session Expiration vulnerability in hexpm hexpm/hexpm ('Elixir.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 'Elixir.Hexpm.Accounts.PasswordReset':can_reset?/3. This issue affects hexpm: from 617e44c71f1dd9043870205f371d375c5c4d886d before bb0e42091995945deef10556f58d046a52eb7884.
Title Password Reset Tokens Do Not Expire
First Time appeared Hexpm
Hexpm hexpm
Weaknesses CWE-613
CPEs cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*
Vendors & Products Hexpm
Hexpm hexpm
References
Metrics cvssV4_0

{'score': 9.5, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: EEF

Published:

Updated: 2026-04-21T04:15:20.750Z

Reserved: 2026-01-01T03:46:45.934Z

Link: CVE-2026-21622

cve-icon Vulnrichment

Updated: 2026-03-10T14:36:09.744Z

cve-icon NVD

Status : Modified

Published: 2026-03-05T22:16:12.963

Modified: 2026-04-06T17:17:07.780

Link: CVE-2026-21622

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-15T20:00:06Z

Weaknesses