Live threats

All CVEs / Mongodb

CVE-2024-6376Mongodb Compass

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
0.7%
probability of exploitation in 30 days · percentile 46
Auth required
No
Published
Jul 1, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20, CWE-94
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Compass.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm @mongodb-js/connection-form < 1.20.1 1.20.1 npm install @mongodb-js/connection-form@1.20.1

Per OSV / GitHub Advisories (GHSA-jxr4-4prv-mh83). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mongodbcompass< 1.42.2

Official sources

References

Links published by the sources. Open them with care.