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

- Priority: **Routine**
- Reason: Not severe (CVSS 7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-07-01 · Modified: 2024-08-01
- Aliases: GHSA-jxr4-4prv-mh83
- Record: https://cvemate.com/vulnerability/CVE-2024-6376 · JSON: https://cvemate.com/vulnerability/CVE-2024-6376/json

## Description

```text
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
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.48%, percentile 43.105%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- mongodb inc mongodb compass: \< 1.42.2
- mongodb compass: \< 1.42.2
- @mongodb-js connection-form (Npm): \< 1.20.1

## References

- <https://jira.mongodb.org/browse/COMPASS-7496>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6376>
- <https://github.com/mongodb-js/compass/commit/b1f8050d49d66be3bc499cb317a1e1de45390e51>
- <https://github.com/mongodb-js/compass>

---

Data as of 2026-12-05T04:23:10.637Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
