CVE-2026-96750 Shell script injection via server-supplied database name in Open MongoDB shell
Attacker with database creation privileges can execute arbitrary shell commands in MongoDB Compass when a user opens the shell for a maliciously named database.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-96750?
CVE-2026-96750 is a high-severity command injection vulnerability in MongoDB Compass, published on 24 Sep 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
MongoDB Compass can interpolate a database name without escaping into the initial input of its embedded MongoDB shell when a user opens the shell from that database's view. A user with privileges to create databases on a server that a Compass user connects to may, under specific conditions, have content evaluated as shell input within the Compass process, with that process's privileges. This requires the Compass user to open the shell for the affected database.
Weakness: CWE-94
Which versions are affected by CVE-2026-96750?
How do I fix CVE-2026-96750?
No fix has been published for CVE-2026-96750 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-96750 being exploited?
There is no known exploitation of CVE-2026-96750 in the wild and no public exploit code.
Sources
Also known as GHSA-g679-8jm6-pqf7.