CVE-2024-6087
mediumpriority · track · 26EPSS 0.004 · 38 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-6p2q-8qfq-wq7xWithdrawn Advisory: Lunary improper access control vulnerability2024-09-13ghsa · osvUS
## Withdrawn Advisory This advisory has been withdrawn because the [lunary npm package](https://www.npmjs.com/package/lunary) is connected to https://github.com/lunary-ai/lunary-js, not the https://github.com/lunary-ai/lunary repo that is discussed in this advisory. **The underlying vulnerability report is still valid**, but it doesn't affect a product in a [GitHub Advisory Database supported ecosystem](https://docs.github.com/en/code-security/security-advisories/working-with-global-security-advisories-from-the-github-advisory-database/about-the-github-advisory-database#github-reviewed-advisories). This link is maintained to preserve external references. ## Original Description An improper access control vulnerability exists in lunary-ai/lunary prior to commit 844e8855c7a713dc7371766dba4125de4007b1cf 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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (8)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2024-6087/cnnvd
- https://github.com/lunary-ai/lunary/commit/844e8855c7a713dc7371766dba4125de4007b1cfcnnvd
- https://github.com/lunary-ai/lunary/releases/tag/v1.4.21Patchcnnvd
- https://huntr.com/bounties/bd9f2301-11c7-4cbd-8d77-3e9225bd67e8cnnvd
- https://github.com/lunary-ai/lunary/commit/844e8855c7a713dc7371766dba4125de4007b1cfenisa_euvd
- https://huntr.com/bounties/bd9f2301-11c7-4cbd-8d77-3e9225bd67e8enisa_euvd
- https://github.com/lunary-ai/lunary/commit/844e8855c7a713dc7371766dba4125de4007b1cfPatchnvd
- https://huntr.com/bounties/bd9f2301-11c7-4cbd-8d77-3e9225bd67e8ExploitThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan