CVE-2024-6376
CRITICAL 9.8CVSS 3.1ejson shell parser in MongoDB Compass maybe bypassed
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
- Published
- 1 Jul 2024
- Last modified
- 17 Jun 2026
- Assigned by
- cna@mongodb.com
- NVD status
- Modified
- Weakness
- CWE-20CWE-94
- Also known as
- GHSA-jxr4-4prv-mh83
- Sources
- NVDJSONOSV GHSA-jxr4-4prv-mh83JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | cna@mongodb.com (Secondary) | CVSS 3.1 | HIGH 7.0 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.0 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mongodb | compasscpe:2.3:a:mongodb:compass:*:*:*:*:*:*:*:* |
< 1.42.2 | 1.42.2 |
| OSV | npm | @mongodb-js/connection-form | < 1.20.1 | 1.20.1 |
References
- https://jira.mongodb.org/browse/COMPASS-7496 · Issue Tracking, Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-6376 · ADVISORY
- https://github.com/mongodb-js/compass/commit/b1f8050d49d66be3bc499cb317a1e1de45390e51 · WEB
- https://github.com/mongodb-js/compass · PACKAGE
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 1 Jul 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 1 Jul 2024)