CVE-2024-6376Mongodb Compass
Critical 9.8 No auth needed
Follow: this CVE · Mongodb · Mongodb Compass We alert you by email or Slack (account required).
- 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
- 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
What to do
- Apply the vendor's security update for Compass.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| mongodb | compass | < 1.42.2 |
Official sources
References
Links published by the sources. Open them with care.
- jira.mongodb.org Issue Tracking Patch Vendor Advisory