CVE-2024-6087: Withdrawn Advisory Lunary Improper Access Control Vulnerability Vulnerability
HIGHCVE-2024-6087 is a HIGH (CVSS 6.5) lunary improper access control vulnerability vulnerability (CWE-284: Improper Access Control) affecting Withdrawn Advisory libraries in the npm ecosystem. The issue involves lunary improper access control vulnerability. Remediation is available by upgrading affected packages to version 1.4.9.
CVE-2024-6087 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2024-6087
To remediate this vulnerability, upgrade all affected Withdrawn Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install lunary@1.4.9
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls lunary
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-6087, inspect your project dependencies using npm:
npm ls lunary
Analyze the terminal output to locate any version of Withdrawn Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.9), your application is affected.
Note: The npm ls lunary command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Withdrawn Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-6087 Affected Withdrawn Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
lunary
|
npm |
< 1.4.9
|
1.4.9
|
References
Frequently Asked Questions
What is CVE-2024-6087?
Which Withdrawn Advisory versions are affected?
What version fixes CVE-2024-6087?
Is lunary affected?
What is the CVSS score of CVE-2024-6087?
What CWE is associated with CVE-2024-6087?
How can I check npm dependencies for CVE-2024-6087?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6p2q-8qfq-wq7x",
"modified" : "2025-06-20T20:01:24Z",
"published" : "2024-09-13T18:31:48Z",
"withdrawn" : "2025-06-20T20:01:24Z",
"aliases" : [ "CVE-2024-6087" ],
"summary" : "Withdrawn Advisory: Lunary improper access control vulnerability",
"details" : "## Withdrawn Advisory\nThis 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.\n\n**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).\n\nThis link is maintained to preserve external references.\n\n## Original Description\nAn 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "lunary"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.4.9"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-6087"
}, {
"type" : "WEB",
"url" : "https://github.com/lunary-ai/lunary/commit/844e8855c7a713dc7371766dba4125de4007b1cf"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/lunary-ai/lunary"
}, {
"type" : "WEB",
"url" : "https://huntr.com/bounties/bd9f2301-11c7-4cbd-8d77-3e9225bd67e8"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-13T19:29:12Z",
"nvd_published_at" : "2024-09-13T17:15:13Z"
}
}