{"schemaVersion":3,"id":"CVE-2026-21622","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"Insufficient Session Expiration vulnerability in hexpm hexpm/hexpm ('Elixir.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 'Elixir.Hexpm.Accounts.PasswordReset':can_reset?/3.\n\nThis issue affects hexpm: from 617e44c71f1dd9043870205f371d375c5c4d886d before bb0e42091995945deef10556f58d046a52eb7884.","dates":{"published":"2026-03-05T21:18:03.883Z","modified":"2026-04-21T04:15:20.750Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":9.5,"severity":"critical","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":9.5,"severity":"critical","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00397,"percentile":0.32462,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.006999999999999975,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.0039},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00397,"percentile":0.32462}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00397,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00397,"percentile":0.32462}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-613","name":"Insufficient Session Expiration","description":"According to WASC, \"Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization.\"","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/613.html"}],"affected":[{"vendor":"hex","product":"hexpm","name":"hexpm","label":"hexpm","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2025-10-01, < 2026-03-05","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2025-10-01, < 2026-03-05","eol":null,"hubHref":"/vendor/hex/hexpm"},{"vendor":"hexpm","product":"hexpm","name":"hexpm","label":"hexpm","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 617e44c71f1dd9043870205f371d375c5c4d886d, < bb0e42091995945deef10556f58d046a52eb7884","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2025-08-01, < 2026-03-05","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 617e44c71f1dd9043870205f371d375c5c4d886d, < bb0e42091995945deef10556f58d046a52eb7884 | ≥ 2025-08-01, < 2026-03-05","eol":null,"hubHref":"/vendor/hexpm/hexpm"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/hexpm/hexpm/security/advisories/GHSA-6r94-pvwf-mxqm","label":"github.com/hexpm/hexpm/security/advisories/GHSA-6r94-pvwf-mxqm","hostname":"github.com","tags":["Vendor Advisory","Related","Patch"]},{"url":"https://cna.erlef.org/cves/CVE-2026-21622.html","label":"cna.erlef.org/cves/CVE-2026-21622.html","hostname":"cna.erlef.org","tags":["Related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-21622","label":"osv.dev/vulnerability/EEF-CVE-2026-21622","hostname":"osv.dev","tags":["Related"]},{"url":"https://github.com/hexpm/hexpm/commit/bb0e42091995945deef10556f58d046a52eb7884","label":"github.com/hexpm/hexpm/commit/bb0e42091995945deef10556f58d046a52eb7884","hostname":"github.com","tags":["Patch"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-03-05T21:18:03.883Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-04-21T04:15:20.750Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T01:12:11.708Z","stale":false,"partial":false}}