{"id":"CVE-2026-21622","aliases":["CVE-2026-21622","EEF-CVE-2026-21622","GHSA-6r94-pvwf-mxqm"],"related":[],"kind":"vulnerability","state":"published","title":"Password Reset Tokens Do Not Expire","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nInsufficient 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.\n\n## Workarounds\n\nUsers 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.","format":"markdown","source":"eef"},{"lang":"es","text":"Vulnerabilidad de expiración de sesión insuficiente en hexpm hexpm/hexpm (módulo 'Elixir.Hexpm.Accounts.PasswordReset') permite la toma de control de cuentas.\n\nLos tokens de restablecimiento de contraseña generados a través del flujo 'Restablecer su contraseña' no expiran. Cuando un usuario solicita un restablecimiento de contraseña, Hex envía un correo electrónico que contiene un enlace de restablecimiento con un token. Este token permanece válido indefinidamente hasta que se usa. No se aplica ninguna expiración basada en el tiempo.\n\nSi los correos electrónicos históricos de un usuario se exponen a través de una violación de datos (por ejemplo, un archivo de buzón de correo filtrado), cualquier correo electrónico de restablecimiento de contraseña no utilizado contenido en ese conjunto de datos podría ser utilizado por un atacante para restablecer la contraseña de la víctima. El atacante no necesita acceso actual a la cuenta de correo electrónico de la víctima, solo acceso a una copia previamente filtrada del correo electrónico de restablecimiento.\n\nEsta vulnerabilidad está asociada con los archivos de programa lib/hexpm/accounts/password_reset.ex y las rutinas de programa 'Elixir.Hexpm.Accounts.PasswordReset':can_reset?/3.\n\nEste problema afecta a hexpm: desde 617e44c71f1dd9043870205f371d375c5c4d886d antes de bb0e42091995945deef10556f58d046a52eb7884.","source":"nvd"}],"published":"2026-03-05T21:18:03.883Z","modified":"2026-11-25T06:30:21.649Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","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","score":9.5,"rating":"CRITICAL"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","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","score":9.5,"rating":"CRITICAL"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","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"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-613"],"affected":[{"ranges":[{"type":"date","introduced":"2025-08-01","fixed":"2026-03-05","status":"affected"}],"vendor":"hexpm","product":"hexpm","package":"hex.pm","cpe":"cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"git","introduced":"617e44c71f1dd9043870205f371d375c5c4d886d","fixed":"bb0e42091995945deef10556f58d046a52eb7884","status":"affected"}],"vendor":"hexpm","product":"hexpm","package":"hexpm/hexpm","cpe":"cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*","repo":"https://github.com/hexpm/hexpm","source":"cvelist"},{"ranges":[{"type":"git","introduced":"617e44c71f1dd9043870205f371d375c5c4d886d","status":"affected","fixed":"bb0e42091995945deef10556f58d046a52eb7884"}],"repo":"https://github.com/hexpm/hexpm","source":"eef"},{"ranges":[{"status":"affected","introduced":"2025-10-01","fixed":"2026-03-05"}],"vendor":"hex","product":"hexpm","cpe":"cpe:2.3:a:hex:hexpm:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/hexpm/hexpm/security/advisories/GHSA-6r94-pvwf-mxqm","tags":["advisory","patch","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-21622.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-21622","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/hexpm/hexpm/commit/617e44c71f1dd9043870205f371d375c5c4d886d","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/hexpm/hexpm/commit/bb0e42091995945deef10556f58d046a52eb7884","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]}],"credits":["Michael Lubas / Paraxial.io","Jonatan Männchen / EEF","Eric Meadows-Jönsson / Hex.pm"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-03-10T14:35:49.366Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-21622","url":"https://www.cve.org/CVERecord?id=CVE-2026-21622","licence":"CVE Terms of Use","modified":"2026-11-20T03:08:30.228Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-21622","url":"https://osv.dev/vulnerability/EEF-CVE-2026-21622","licence":"CC-BY-4.0","modified":"2026-11-25T06:30:21.649Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-21622","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-21622","licence":"Public domain","modified":"2026-11-20T04:17:11.007Z"}],"updatedAt":"2026-11-25T22:59:15.343Z","epss":{"score":0.00769,"percentile":0.51978,"date":"2026-11-30T12:00:22.000Z"}}