{"id":"CVE-2024-6862","aliases":["CVE-2024-6862","GHSA-v6x6-4v4x-2fx9"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Request Forgery (CSRF) in lunary-ai/lunary","summary":"A 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A 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.","source":"cvelist"},{"lang":"en","text":"## 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Existe una vulnerabilidad de Cross-Site Request Forgery (CSRF) en la versión 1.2.34 de lunary-ai/lunary debido a una configuración CORS demasiado permisiva. Esta vulnerabilidad permite que un atacante se registre y cree proyectos o utilice la instancia como si fuera un usuario con acceso local. El principal vector de ataque son las instancias alojadas localmente en máquinas personales, que no son de acceso público. La configuración CORS en el backend permite todos los orígenes, lo que expone los endpoints no autenticados a ataques CSRF.","source":"nvd"}],"published":"2024-09-13T16:13:51.639Z","modified":"2026-09-10T03:50:19.042Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","score":7.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","score":7.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"}],"cwes":["CWE-352"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.4.10","status":"affected"}],"vendor":"lunary-ai","product":"lunary-ai/lunary","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"1.4.10","status":"affected"}],"vendor":"lunary-ai","product":"lunary-ai\\/lunary","cpe":"cpe:2.3:a:lunary-ai:lunary-ai\\/lunary:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.4.10"}],"ecosystem":"npm","package":"lunary","purl":"pkg:npm/lunary","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.4.10"}],"ecosystem":"npm","package":"@lunary/backend","purl":"pkg:npm/%40lunary/backend","source":"ghsa"},{"ranges":[{"status":"affected","version":"1.2.34"}],"vendor":"lunary","product":"lunary","cpe":"cpe:2.3:a:lunary:lunary:1.2.34:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://huntr.com/bounties/0b1d851e-3455-480c-ad5a-23565894976f","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/lunary-ai/lunary/commit/3451fcd7b9d95e9091d62c515752f39f2faa6e54","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6862","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/lunary-ai/lunary","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-09-13T16:34:29.466Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-6862","url":"https://www.cve.org/CVERecord?id=CVE-2024-6862","licence":"CVE Terms of Use","modified":"2024-09-13T16:35:41.728Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v6x6-4v4x-2fx9","url":"https://github.com/advisories/GHSA-v6x6-4v4x-2fx9","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:19.042Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-6862","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6862","licence":"Public domain","modified":"2026-06-17T08:18:51.823Z"}],"updatedAt":"2026-11-25T22:58:45.414Z","epss":{"score":0.00368,"percentile":0.22862,"date":"2026-11-30T12:00:22.000Z"}}