{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-21622","assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","state":"PUBLISHED","assignerShortName":"EEF","dateReserved":"2026-01-01T03:46:45.934Z","datePublished":"2026-03-05T21:18:03.883Z","dateUpdated":"2026-11-20T03:08:30.228Z"},"containers":{"cna":{"affected":[{"collectionURL":"https://hex.pm","cpes":["cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.Hexpm.Accounts.PasswordReset'"],"packageName":"hex.pm","product":"hexpm","programFiles":["lib/hexpm/accounts/password_reset.ex"],"programRoutines":[{"name":"'Elixir.Hexpm.Accounts.PasswordReset':can_reset?/3"}],"vendor":"hexpm","versions":[{"lessThan":"2026-03-05","status":"affected","version":"2025-08-01","versionType":"date"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.Hexpm.Accounts.PasswordReset'"],"packageName":"hexpm/hexpm","packageURL":"pkg:github/hexpm/hexpm","product":"hexpm","programFiles":["lib/hexpm/accounts/password_reset.ex"],"programRoutines":[{"name":"'Elixir.Hexpm.Accounts.PasswordReset':can_reset?/3"}],"repo":"https://github.com/hexpm/hexpm","vendor":"hexpm","versions":[{"lessThan":"bb0e42091995945deef10556f58d046a52eb7884","status":"affected","version":"617e44c71f1dd9043870205f371d375c5c4d886d","versionType":"git"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*","versionEndExcluding":"bb0e42091995945deef10556f58d046a52eb7884","versionStartIncluding":"617e44c71f1dd9043870205f371d375c5c4d886d","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Michael Lubas / Paraxial.io"},{"lang":"en","type":"remediation developer","value":"Jonatan Männchen / EEF"},{"lang":"en","type":"remediation reviewer","value":"Eric Meadows-Jönsson / Hex.pm"}],"datePublic":"2026-03-05T21:18:03.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Insufficient Session Expiration vulnerability in hexpm hexpm/hexpm (<code>Hexpm.Accounts.PasswordReset</code> module) allows Account Takeover.</p>\n<p>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.</p>\n<p>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.</p>\n<p>This vulnerability is associated with program files <code>lib/hexpm/accounts/password_reset.ex</code> and program routines <code>Hexpm.Accounts.PasswordReset.can_reset?/3</code>.</p>\n<p>This issue affects hex.pm: from 2025-08-01 before 2026-03-05; hexpm/hexpm: from 617e44c71f1dd9043870205f371d375c5c4d886d before bb0e42091995945deef10556f58d046a52eb7884.</p>"},{"base64":false,"type":"text/markdown","value":"Insufficient Session Expiration vulnerability in hexpm hexpm/hexpm (`Hexpm.Accounts.PasswordReset` module) allows Account Takeover.\n\nPassword 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.\n\nIf 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.\n\nThis vulnerability is associated with program files `lib/hexpm/accounts/password_reset.ex` and program routines `Hexpm.Accounts.PasswordReset.can_reset?/3`.\n\nThis issue affects hex.pm: from 2025-08-01 before 2026-03-05; hexpm/hexpm: from 617e44c71f1dd9043870205f371d375c5c4d886d before bb0e42091995945deef10556f58d046a52eb7884."}],"value":"Insufficient Session Expiration vulnerability in hexpm hexpm/hexpm (Hexpm.Accounts.PasswordReset module) allows Account Takeover.\n\nPassword 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.\n\nIf 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.\n\nThis vulnerability is associated with program files lib/hexpm/accounts/password_reset.ex and program routines Hexpm.Accounts.PasswordReset.can_reset?/3.\n\nThis issue affects hex.pm: from 2025-08-01 before 2026-03-05; hexpm/hexpm: from 617e44c71f1dd9043870205f371d375c5c4d886d before bb0e42091995945deef10556f58d046a52eb7884."}],"impacts":[{"capecId":"CAPEC-21","descriptions":[{"lang":"en","value":"CAPEC-21 Exploitation of Trusted Identifiers"}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":9.5,"baseSeverity":"CRITICAL","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"LOW","subConfidentialityImpact":"HIGH","subIntegrityImpact":"HIGH","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"LOW","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-613","description":"CWE-613 DEPRECATED: Insufficient Session Expiration","lang":"en","type":"CWE"}]}],"providerMetadata":{"orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF","dateUpdated":"2026-11-20T03:08:30.228Z"},"references":[{"name":"Password Reset Tokens Do Not Expire","tags":["vendor-advisory","related"],"url":"https://github.com/hexpm/hexpm/security/advisories/GHSA-6r94-pvwf-mxqm"},{"name":"EEF CNA record for CVE-2026-21622","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-21622.html"},{"name":"OSV record EEF-CVE-2026-21622","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-21622"},{"name":"Introducing commit 617e44c in hexpm/hexpm","tags":["related"],"url":"https://github.com/hexpm/hexpm/commit/617e44c71f1dd9043870205f371d375c5c4d886d"},{"name":"Fix commit bb0e420 in hexpm/hexpm","tags":["patch"],"url":"https://github.com/hexpm/hexpm/commit/bb0e42091995945deef10556f58d046a52eb7884"}],"source":{"discovery":"INTERNAL"},"title":"Password Reset Tokens Do Not Expire","workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Users who suspect email exposure should:</p>\n<ul>\n<li>Immediately reset their password.</li>\n<li>Enable and enforce 2FA.</li>\n</ul>\n<p>There is no complete mitigation without implementing token expiration.</p>"},{"base64":false,"type":"text/markdown","value":"Users who suspect email exposure should:\n\n* Immediately reset their password.\n* Enable and enforce 2FA.\n\nThere is no complete mitigation without implementing token expiration."}],"value":"Users who suspect email exposure should:\n\n* Immediately reset their password.\n* Enable and enforce 2FA.\n\nThere is no complete mitigation without implementing token expiration."}]},"adp":[{"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-03-10T14:35:49.366785Z","id":"CVE-2026-21622","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-04-21T02:43:06.195Z"}}]}}