Account takeover via nonexpiring password-reset tokens
Published Mar 5, 2026 · Updated Mar 5, 2026
Insufficient reset-token expiration in Six Colors AB Hex.pm allows remote attackers with an old reset link to take over an account. Hexpm.Accounts.PasswordReset.can_reset?/3 checks only the key and primary email, omitting any comparison between inserted_at and the current time. Exploitation requires an unused reset link from the victim's current or historically exposed email; successful use changes the password and grants control of the account.
Summary
What happened
Insufficient reset-token expiration in Six Colors AB Hex.pm allows remote attackers with an old reset link to take over an account. Hexpm.Accounts.PasswordReset.can_reset?/3 checks only the key and primary email, omitting any comparison between inserted_at and the current time. Exploitation requires an unused reset link from the victim's current or historically exposed email; successful use changes the password and grants control of the account.
The record
- CVE
- CVE-2026-21622
- Published
- Mar 5, 2026
- Updated
- Mar 5, 2026
- Vendor
- Six Colors AB
- Product
- Hex.pm
- Classifications
- CWE-613, T1078
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Mar 5, 2026CVE publishedPublication date reported by the CVE source.
- Mar 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=2025-08-01 <2026-03-05
- Affected versionversion=617e44c71f1dd9043870205f371d375c5c4d886d <bb0e42091995945deef10556f58d046a52eb7884
- Affected versionversion=pkg:github/hexpm/hexpm@617e44c71f1dd9043870205f371d375c5c4d886d <pkg:github/hexpm/hexpm@bb0e42091995945deef10556f58d046a52eb7884
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo