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

- Severity: High 7.0 (CVSS:3.1, scored by mongodb) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 43% of CVEs (2026-12-01)
- Published: 2024-07-01T14:57:31.704Z
- Modified: 2026-06-17T08:17:53.293Z
- Also known as: GHSA-jxr4-4prv-mh83
- Weaknesses: CWE-20, CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mongodb

## Description

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

(As written by CVE List.)

## Affected

- MongoDB Inc MongoDB Compass: before 1.42.2
- @mongodb-js/connection-form (npm): before 1.20.1
- mongodb compass: before 1.42.2

## Every score

- mongodb: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## 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)

## Sources

- CVE List: [CVE-2024-6376](https://www.cve.org/CVERecord?id=CVE-2024-6376), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-jxr4-4prv-mh83](https://github.com/advisories/GHSA-jxr4-4prv-mh83), CC-BY-4.0, modified 2025-02-27
- NVD: [CVE-2024-6376](https://nvd.nist.gov/vuln/detail/CVE-2024-6376), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-6376 · Whole record: https://cve.day/CVE-2024-6376.json · Rebuilt by cve.day 2026-11-25T22:58:42.402Z
