What’s Vulnerable › Vulnerabilities
CVE-2024-5386: Account Hijacking via Password Reset Token Leak in lunary-ai/lunary
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-02-02 · updated 2026-06-17
- Weakness: CWE-1125
Description
In lunary-ai/lunary version 1.2.2, an account hijacking vulnerability exists due to a password reset token leak. A user with a 'viewer' role can exploit this vulnerability to hijack another user's account by obtaining the password reset token. The vulnerability is triggered when the 'viewer' role user sends a specific request to the server, which responds with a password reset token in the 'recoveryToken' parameter. This token can then be used to reset the password of another user's account without authorization. The issue results from an excessive attack surface, allowing lower-privileged users to escalate their privileges and take over accounts.
Affected products
- lunary-ai/lunary: before 1.2.14 — fixed in 1.2.14
How to fix
Upgrade to a fixed version: lunary-ai/lunary 1.2.14. Check the vendor advisory for mitigations.
References
- https://github.com/lunary-ai/lunary/commit/fc7ab3d5621c18992da5dab3a2a9a8d227d42311
- https://huntr.com/bounties/602eb4a1-305d-46d6-b975-5a5d8b040ad1
Get alerted when CVE-2024-5386 or the next vulnerability affects your stack