Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @mongodb-js/connection-form
  4. ›
  5. CVE-2024-6376

CVE-2024-6376: ejson shell parser in MongoDB Compass maybe bypassed

July 1, 2024 (updated February 27, 2025)

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of ejson shell parser in Compass’ connection handling. This issue affects MongoDB Compass versions prior to version 1.42.2.

References

  • github.com/advisories/GHSA-jxr4-4prv-mh83
  • github.com/mongodb-js/compass
  • github.com/mongodb-js/compass/commit/b1f8050d49d66be3bc499cb317a1e1de45390e51
  • jira.mongodb.org/browse/COMPASS-7496
  • nvd.nist.gov/vuln/detail/CVE-2024-6376

Code Behaviors & Features

Detect and mitigate CVE-2024-6376 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.20.1

Fixed versions

  • 1.20.1

Solution

Upgrade to version 1.20.1 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/@mongodb-js/connection-form/CVE-2024-6376.yml

Spotted a mistake? Edit the file on GitLab.

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

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