CVE-2024-6862
JSON

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 packageVersionsReported by
lunary-ai lunary-ai/lunaryfrom unspecified before 1.4.10CVE List
lunary-ai lunary-ai\/lunarybefore 1.4.10CVE List
lunary (npm)before 1.4.10GitHub Advisory Database
@lunary/backend (npm)before 1.4.10GitHub Advisory Database
lunary lunary1.2.34NVD

All scores

@huntr_ai7.4high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
GitHub7.4medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Classification

CWE-352

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

Sources

SourceRecordLicence
CVE ListCVE-2024-6862 changed 2024-09-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-v6x6-4v4x-2fx9 changed 2026-09-10CC-BY-4.0
NVDCVE-2024-6862 changed 2026-06-17Public domain