{"id":"CVE-2024-6087","aliases":["CVE-2024-6087","GHSA-6p2q-8qfq-wq7x"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Access Control in lunary-ai/lunary","summary":"An improper access control vulnerability exists in lunary-ai/lunary at the latest commit (a761d83) 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An improper access control vulnerability exists in lunary-ai/lunary at the latest commit (a761d83) 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.","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\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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Existe una vulnerabilidad de control de acceso indebido en lunary-ai/lunary en la última confirmación (a761d83) en la rama principal. La vulnerabilidad permite a un atacante utilizar los tokens de autenticación emitidos por la función \"invitar usuario\" para obtener tokens JWT válidos. Estos tokens se pueden utilizar para comprometer a los usuarios objetivo al registrarse en sus propias organizaciones arbitrarias. El atacante puede invitar a un correo electrónico objetivo, obtener un token de uso único, retractarse de la invitación y, más tarde, utilizar el token para restablecer la contraseña del usuario objetivo, lo que lleva a la toma de control total de la cuenta.","source":"nvd"}],"published":"2024-09-13T16:12:15.921Z","modified":"2026-09-10T03:50:18.808Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-284","CWE-639"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.4.9","status":"affected"}],"vendor":"lunary-ai","product":"lunary-ai/lunary","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"1.4.9","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.9"}],"ecosystem":"npm","package":"lunary","purl":"pkg:npm/lunary","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.4.9"}],"vendor":"lunary","product":"lunary","cpe":"cpe:2.3:a:lunary:lunary:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://huntr.com/bounties/bd9f2301-11c7-4cbd-8d77-3e9225bd67e8","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/lunary-ai/lunary/commit/844e8855c7a713dc7371766dba4125de4007b1cf","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6087","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:40:08.542Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-6087","url":"https://www.cve.org/CVERecord?id=CVE-2024-6087","licence":"CVE Terms of Use","modified":"2025-10-15T12:49:46.200Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6p2q-8qfq-wq7x","url":"https://github.com/advisories/GHSA-6p2q-8qfq-wq7x","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:18.808Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-6087","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6087","licence":"Public domain","modified":"2026-06-17T08:17:15.767Z"}],"updatedAt":"2026-11-25T22:58:45.413Z","epss":{"score":0.0044,"percentile":0.39965,"date":"2026-12-01T12:00:22.000Z"}}