IT SBIT Services
Schneeberger
DEEN
CVE tracker

MongoDB Compass: Improper escaping of BSON values leads to code execution

CVE-2026-113870High 8.6

← All vulnerabilities

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

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.

NVD references (1)

Sources

The tracker combines official, freely usable data sources – updated continuously:

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.