Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. lunary
  4. ›
  5. CVE-2024-6087

CVE-2024-6087: Lunary improper access control vulnerability

September 13, 2024 (updated November 18, 2024)

An 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.

References

  • github.com/advisories/GHSA-6p2q-8qfq-wq7x
  • github.com/lunary-ai/lunary
  • github.com/lunary-ai/lunary/commit/844e8855c7a713dc7371766dba4125de4007b1cf
  • huntr.com/bounties/bd9f2301-11c7-4cbd-8d77-3e9225bd67e8
  • nvd.nist.gov/vuln/detail/CVE-2024-6087

Code Behaviors & Features

Detect and mitigate CVE-2024-6087 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.4.9

Fixed versions

  • 1.4.9

Solution

Upgrade to version 1.4.9 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-284: Improper Access Control

Source file

npm/lunary/CVE-2024-6087.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:30 +0000.