# CVE-2024-6087: Improper Access Control in lunary-ai/lunary

- Severity: Medium 6.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/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.44%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-09-13T16:12:15.921Z
- Modified: 2026-09-10T03:50:18.808Z
- Also known as: GHSA-6p2q-8qfq-wq7x
- Weaknesses: CWE-284, CWE-639
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## Description

An improper access control vulnerability exists in lunary-ai/lunary at the latest commit (a761d83) on the main branch. The vulnerability allows an attacker to use the auth tokens issued by the 'invite user' functionality to obtain valid JWT tokens. These tokens can be used to compromise target users upon registration for their own arbitrary organizations. The attacker can invite a target email, obtain a one-time use token, retract the invite, and later use the token to reset the password of the target user, leading to full account takeover.

(As written by CVE List.)

## Affected

- lunary-ai lunary-ai/lunary: from unspecified before 1.4.9
- lunary-ai lunary-ai\/lunary: before 1.4.9
- lunary (npm): before 1.4.9
- lunary lunary: before 1.4.9

## Every score

- @huntr_ai: CVSS:3.0 6.5 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.0 6.5 High `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://huntr.com/bounties/bd9f2301-11c7-4cbd-8d77-3e9225bd67e8> (exploit, third-party-advisory, web)
- <https://github.com/lunary-ai/lunary/commit/844e8855c7a713dc7371766dba4125de4007b1cf> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6087> (advisory)
- <https://github.com/lunary-ai/lunary> (package)

## Sources

- CVE List: [CVE-2024-6087](https://www.cve.org/CVERecord?id=CVE-2024-6087), CVE Terms of Use, modified 2025-10-15
- GitHub Advisory Database: [GHSA-6p2q-8qfq-wq7x](https://github.com/advisories/GHSA-6p2q-8qfq-wq7x), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-6087](https://nvd.nist.gov/vuln/detail/CVE-2024-6087), Public domain, modified 2026-06-17

---

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