CVE-2024-6087: Withdrawn Advisory Lunary Improper Access Control Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-6p2q-8qfq-wq7x
CVSS 6.5
CWE-284
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-6087
GHSA Identifier GHSA-6p2q-8qfq-wq7x
Severity HIGH
CVSS v3.1 Base Score 6.5
CWE Classification CWE-284: Improper Access Control
Affected Product Withdrawn Advisory
Package Ecosystem npm
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (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.

lunary fixed: 1.4.9
npm install lunary@1.4.9
Verify Direct and Transitive Dependencies

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

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

CVE-2024-6087 Affected Withdrawn Advisory Versions

1 component(s)
Fixed Versions:
1.4.9
Product / Package Ecosystem Affected Versions Fixed Version
lunary
npm
< 1.4.9
1.4.9

References

Frequently Asked Questions

What is CVE-2024-6087?
CVE-2024-6087 is a security vulnerability in Withdrawn Advisory involving Lunary improper access control vulnerability under CWE-284: Improper Access Control.
Which Withdrawn Advisory versions are affected?
Affected versions include releases prior to 1.4.9 across affected packages: lunary.
What version fixes CVE-2024-6087?
Upgrading to 1.4.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is lunary affected?
Yes, lunary is affected in releases prior to 1.4.9. Upgrade your dependency to 1.4.9 or later.
What is the CVSS score of CVE-2024-6087?
CVE-2024-6087 has a CVSS v3.1 base score of 6.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2024-6087?
CVE-2024-6087 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check npm dependencies for CVE-2024-6087?
Run the dependency tree command: 'npm ls lunary'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}