MongoDB Compass: Improper escaping of BSON values leads to code execution
Summary
MongoDB Compass does not properly escape certain BSON values when converting a stored view's aggregation pipeline into editable source. If a user connects to a deployment with a specially crafted view and opens it for editing, an attacker can execute arbitrary code with the privileges of the Compass user. Exploitation requires that the user opens the crafted view, and an attacker must be able to plant or control such a view on a deployment the user connects to.
Affected
- MongoDB Compass 1.7.0 to before 1.49.15
- Default configuration is not affected.
Fixed in
- Upgrade to MongoDB Compass 1.49.15 or later.
Workaround
- No vendor workaround known.
- Until patched, do not open views on MongoDB deployments you do not trust.
- Limit who can create or modify views on shared deployments.
Exploitation
- No confirmed in-the-wild exploitation known.
- No public proof of concept found.
- CISA SSVC: exploitation none, automatable no, technical impact total.
Our recommendation
- Inventory Compass installations and versions on endpoints.
- Upgrade all installations below 1.49.15.
- Prioritise workstations of developers and administrators who connect to shared or external MongoDB deployments.
- Check the vendor advisory for 1.49.15 and recheck NVD and CISA KEV, as NVD analysis is still pending.
Public exploits
PoC-in-GitHub, Metasploit and Exploit-DB list nothing for this CVE.
Research sources
- MongoDB Compass Release Notes www.mongodb.com
- OSV entry CVE-2026-113870 osv.dev
- VulDB entry 424961 vuldb.com
- Compass v1.49.15 GitHub release github.com
- Compass views documentation www.mongodb.com
Researched and written up in English and German by an AI (Claude by Anthropic) based on NVD, CISA, EPSS and the sources listed. The vendor information is authoritative. Researched on 1 Nov 2026, 07:21.
Original description (NVD)
MongoDB Compass improperly escapes certain BSON values when converting a stored view’s aggregation pipeline into editable source. When a user connects to a MongoDB deployment containing a specially crafted view and opens that view for editing, the values can cause arbitrary code to execute with the privileges of the user running Compass.
Sources
The tracker combines official, freely usable data sources – updated continuously:
- NVD (NIST) – CVEs, rating (CVSS), affected products
- CISA KEV – vulnerabilities confirmed by CISA as actively exploited
- CISA Vulnrichment – CISA assessment (SSVC) in the official CVE record
- FIRST EPSS – probability of exploitation
- Microsoft MSRC – Patch Tuesday: vulnerabilities, severity, updates
- PoC-in-GitHub – public proof-of-concept repositories
- Metasploit (Rapid7) – modules of the Metasploit Framework
- Exploit-DB (OffSec) – archive of public exploits (links only)
- Patch days: official vendor pages (linked per vendor) (Vendor patch days)
This product uses data from the NVD API but is not endorsed or certified by the NVD. EPSS data © FIRST.org.
Affected? We can help.
We check whether your systems are affected, install updates and close the gap – continuously with the System Health Checker if you wish.
