Vulnerabilities in pkg:npm/lunary
PACKAGECVE-2024-6862 is a MODERATE (CVSS 7.4) lunary cross-site request forgery (csrf) vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Withdrawn Advisory libraries in the npm ecosystem. The issue involves lunary cross-site request forgery (csrf) vulnerability. Remediation is available by upgrading affected packages to version 1.4.10.
pkg:npm/lunary
Vulnerability advisories affecting package pkg:npm/lunary. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-v6x6-4v4x-2fx9 | CVE-2024-6862 | MODERATE | Withdrawn Advisory: Lunary Cross-Site Request Forgery (CSRF) vulnerability |
| GHSA-rpx8-fg6w-rm6x | CVE-2024-5478 | HIGH | Withdrawn Advisory: lunary-ai/lunary XSS in SAML metadata endpoint |
| GHSA-9jmp-j63g-8x6m | CVE-2024-6867 | MODERATE | Withdrawn Advisory: Lunary information disclosure vulnerability |
| GHSA-6p2q-8qfq-wq7x | CVE-2024-6087 | HIGH | Withdrawn Advisory: Lunary improper access control vulnerability |
| GHSA-w73r-8mm4-cfvf | CVE-2024-6582 | HIGH | Withdrawn Advisory: Lunary Improper Authentication vulnerability |
| GHSA-3mwc-2cj7-gx8c | CVE-2024-5389 | MODERATE | lunary-ai/lunary Access Control Vulnerability in Prompt Variation Management |
| GHSA-w5xm-mx47-v7c8 | CVE-2024-4146 | CRITICAL | lunary-ai/lunary allows users unauthorized access to projects |
CVE-2024-6862 at a Glance
Security Impact
CVSS: 7.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N).
How to Fix CVE-2024-6862
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.10
npm install @lunary/backend@1.4.10
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-6862, 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.10), 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-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated 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-6862 Affected Withdrawn Advisory Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
lunary
|
npm |
< 1.4.10
|
1.4.10
|
|
@lunary/backend
|
npm |
< 1.4.10
|
1.4.10
|
References
Frequently Asked Questions
What is CVE-2024-6862?
Which Withdrawn Advisory versions are affected?
What version fixes CVE-2024-6862?
Is lunary affected?
Is @lunary/backend affected?
What is the CVSS score of CVE-2024-6862?
What CWE is associated with CVE-2024-6862?
How can I check npm dependencies for CVE-2024-6862?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v6x6-4v4x-2fx9",
"modified" : "2025-06-20T20:02:26Z",
"published" : "2024-09-13T18:31:48Z",
"withdrawn" : "2025-06-20T20:02:26Z",
"aliases" : [ "CVE-2024-6862" ],
"summary" : "Withdrawn Advisory: Lunary Cross-Site Request Forgery (CSRF) 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\nA Cross-Site Request Forgery (CSRF) vulnerability exists in lunary-ai/lunary version 1.2.34 due to overly permissive CORS settings. This vulnerability allows an attacker to sign up for and create projects or use the instance as if they were a user with local access. The main attack vector is for instances hosted locally on personal machines, which are not publicly accessible. The CORS settings in the backend permit all origins, exposing unauthenticated endpoints to CSRF attacks.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "lunary"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.4.10"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@lunary/backend"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.4.10"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-6862"
}, {
"type" : "WEB",
"url" : "https://github.com/lunary-ai/lunary/commit/3451fcd7b9d95e9091d62c515752f39f2faa6e54"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/lunary-ai/lunary"
}, {
"type" : "WEB",
"url" : "https://huntr.com/bounties/0b1d851e-3455-480c-ad5a-23565894976f"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-13T19:34:09Z",
"nvd_published_at" : "2024-09-13T17:15:13Z"
}
}