# CVE-2024-5386: Account Hijacking via Password Reset Token Leak in lunary-ai/lunary

- Severity: Critical 9.6 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-02T10:36:23.506Z
- Modified: 2026-06-17T08:15:50.700Z
- Weaknesses: CWE-1125
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- lunary-ai lunary-ai/lunary: from unspecified before 1.2.14
- lunary lunary: before 1.2.14

## Every score

- @huntr_ai: CVSS:3.0 9.6 Critical `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/602eb4a1-305d-46d6-b975-5a5d8b040ad1> (exploit, patch, third-party-advisory)
- <https://github.com/lunary-ai/lunary/commit/fc7ab3d5621c18992da5dab3a2a9a8d227d42311> (broken-link)

## Sources

- CVE List: [CVE-2024-5386](https://www.cve.org/CVERecord?id=CVE-2024-5386), CVE Terms of Use, modified 2026-02-02
- NVD: [CVE-2024-5386](https://nvd.nist.gov/vuln/detail/CVE-2024-5386), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-5386 · Whole record: https://cve.day/CVE-2024-5386.json · Rebuilt by cve.day 2026-11-25T22:58:52.967Z
