7.4high
Cross-Site Request Forgery (CSRF) in lunary-ai/lunary
- Severity
- 7.4high CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 0.37% (higher than 23% of CVEs)
- Published
- Last changed
- Assigned by
- @huntr_ai
- Also known as
- GHSA-v6x6-4v4x-2fx9
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| lunary-ai lunary-ai/lunary | from unspecified before 1.4.10 | CVE List |
| lunary-ai lunary-ai\/lunary | before 1.4.10 | CVE List |
| lunary (npm) | before 1.4.10 | GitHub Advisory Database |
| @lunary/backend (npm) | before 1.4.10 | GitHub Advisory Database |
| lunary lunary | 1.2.34 | NVD |
All scores
| @huntr_ai | 7.4high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |
| GitHub | 7.4medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |
| GitHub | medium CVSS:4.0 | 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 |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Withdrawn Advisory
This advisory has been withdrawn because the lunary npm package 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.
This link is maintained to preserve external references.
Original Description
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.
NVD (es)
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.
References
| https://huntr.com/bounties/0b1d851e-3455-480c-ad5a-23565894976f | exploit, third-party-advisory, web | |
| https://github.com/lunary-ai/lunary/commit/3451fcd7b9d95e9091d62c515752f39f2faa6e54 | patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-6862 | advisory | |
| https://github.com/lunary-ai/lunary | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-6862 changed 2024-09-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-v6x6-4v4x-2fx9 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-6862 changed 2026-06-17 | Public domain |