LiveActive security incident?Get immediate response
CVE Record

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

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.

CriticalCVSS 9.5Not KEV-listedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

Hex.pm’s password reset flow could create links that never expire. If an old, unused reset email was exposed in a mailbox breach or archive leak, someone could use that link later to take over the account. The sources rate this as critical, but they do not state that exploitation is currently occurring.

Executive priority

Treat as urgent for any organization running affected hexpm/hexpm code or responsible for Hex.pm account security. The business risk is account takeover from old leaked email data, not just current mailbox compromise.

Technical view

CVE-2026-21622 is CWE-613 insufficient session expiration in hexpm/hexpm, specifically Elixir.Hexpm.Accounts.PasswordReset can_reset?/3. Reset tokens from the password reset flow remained valid indefinitely until used. Affected code is from commit 617e44c71f1dd9043870205f371d375c5c4d886d before bb0e42091995945deef10556f58d046a52eb7884.

Likely exposure

Exposure is most relevant to operators of affected hexpm/hexpm deployments and the listed hex.pm service entry. Risk is higher where users’ historical email archives may have been leaked and contain unused password reset messages.

Exploitation context

The attacker would need an unused historical password reset email, such as from a breached mailbox archive. The sources do not indicate CISA KEV listing or confirmed active exploitation.

Researcher notes

The vulnerability hinges on indefinite validity of unused reset tokens. Public sources identify affected files, routine, commit range, CVSS 4.0 score 9.5, and patch commit. They do not provide evidence of exploitation in the wild.

Mitigation direction

  • Apply the vendor patch at commit bb0e42091995945deef10556f58d046a52eb7884 or a release containing it.
  • Review the GitHub advisory and CNA notice for current vendor guidance.
  • Identify whether any deployed hexpm/hexpm code predates the patched commit.
  • Consider user communication or token hygiene only if supported by vendor guidance.

Validation and detection

  • Confirm deployed code includes commit bb0e42091995945deef10556f58d046a52eb7884 or later.
  • Review PasswordReset can_reset?/3 behavior for time-based expiration enforcement.
  • Check incident records for exposed mailbox archives containing reset emails.
  • Monitor vendor advisory pages for updated remediation instructions.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-613: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Credential and access behavior lookup

The CVE wording references authentication or credential exposure, so valid-account and credential-access review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-21622 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.5 (4.0)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
5Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
9.5CVSS 4.0CriticalCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L——Primary CVE score

Vulnerability scoring details

Base CVSS 4.0 score

9.5Critical
CVSS 4.0 vector shape for CVE-2026-21622Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
hexpmhexpmhexpm/hexpm, 617e44c71f1dd9043870205f371d375c5c4d886dunaffected
hexpmhex.pm2025-08-01unaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-613 · source CWE mapping

Insufficient Session Expiration

Insufficient Session Expiration represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.