Shell script injection via server-supplied database name in Open MongoDB shell
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-96750
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 15:51 UTC · Revision 1
Source evidence
Shell script injection via server-supplied database name in Open MongoDB shell
core-osv · Original sourcePublished 24 Sept 2026, 15:51 UTC
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.
osv:CVE-2026-96750
Complete source record
{
"id": "b5b03577bc74a5bfa2ca846c9cf27cf46f47cab1ab76420c3911956b83ec36ee",
"url": "https://osv.dev/vulnerability/CVE-2026-96750",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Shell script injection via server-supplied database name in Open MongoDB shell",
"summary": "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.",
"evidence": "osv:CVE-2026-96750",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-96750",
"aliases": [
"CVE-2026-96750"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/mongodb-js/compass",
"type": "GIT",
"events": [
{
"introduced": "6e9d1591aebf4c8fef8b186e213bd51ffd361fe3"
},
{
"fixed": "e5b8044dbc61b911862b67ed02d6880028c5c8ba"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "1.44.0"
},
{
"fixed": "1.49.12"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "e5b8044dbc61b911862b67ed02d6880028c5c8ba"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v1.49.12"
}
]
}
}
],
"versions": [
"v1.49.11",
"v1.49.10",
"v1.49.9",
"v1.49.8",
"v1.49.7",
"v1.49.6",
"v1.49.5",
"v1.49.4",
"v1.49.3",
"v1.49.2",
"v1.49.1",
"v1.49.0",
"v1.48.2",
"v1.48.1",
"v1.48.0",
"v1.47.1",
"v1.47.0",
"v1.46.11",
"v1.46.10",
"v1.46.9",
"v1.46.8",
"v1.46.7",
"v1.46.6",
"v1.46.5",
"v1.46.4",
"v1.46.3",
"v1.46.2",
"v1.46.1",
"v1.46.0",
"v1.45.4",
"v1.45.3",
"v1.45.2",
"v1.45.1",
"v1.45.0",
"v1.44.7",
"v1.44.6",
"v1.44.5",
"v1.44.4",
"v1.44.3",
"v1.44.2",
"v1.44.1",
"v1.44.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-96750.json"
}
}
],
"modified": "2026-10-28T02:30:36.793084048Z",
"provider": "osv",
"references": [
"https://github.com/mongodb-js/compass/releases/tag/v1.49.12",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/96xxx/CVE-2026-96750.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-96750"
],
"provider_metadata": {
"cwe_ids": [
"CWE-94"
],
"cna_assigner": "mongodb",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/96xxx/CVE-2026-96750.json"
}
},
"related_cves": [
{
"value": "CVE-2026-96750",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 504311,
"published_at": "2026-09-24T15:51:13.247+00:00"
}