Description
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.
Published: 2026-10-21
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Patch Now
AI Analysis

Impact

MongoDB Compass fails to properly escape certain BSON values when converting a stored view’s aggregation pipeline into editable source. The vulnerability is an instance of improper encoding (CWE-116) that allows an attacker to inject malicious JavaScript code. When a user opens a specially crafted view for editing, the payload is executed with the privileges of the user running Compass, granting the attacker arbitrary code execution on the client machine.

Affected Systems

All installations of MongoDB Compass that connect to a MongoDB deployment containing a maliciously constructed view are impacted. The vulnerability is present until the Compass software is updated to a version that includes the proper escaping fix.

Risk and Exploitability

The CVSS score of 8.6 indicates a high severity. Although an EPSS score is not available, the lack of a published KEV listing suggests no widespread exploitation has been observed yet. The attack vector is local: the user must run Compass and open the vulnerable view, implying that the threat is confined to the end‑user’s environment and does not require external network access.

Generated by OpenCVE AI on October 22, 2026 at 02:57 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade MongoDB Compass to the latest release that includes the proper escaping fix (e.g., release 149.15.1 or newer).
  • Until a patch is available, avoid opening or editing views that originate from untrusted or unknown sources within Compass.
  • If possible, configure Compass to disable view editing or set the environment to a read‑only mode to prevent the vulnerable conversion from occurring.

Generated by OpenCVE AI on October 22, 2026 at 02:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 30 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 22 Oct 2026 11:15:00 +0000

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb compass
Vendors & Products Mongodb
Mongodb compass

Wed, 21 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Improper Encoding of Server-Supplied JavaScript Values in MongoDB Compass BSON Parsing
Weaknesses CWE-116
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: mongodb

Published:

Updated: 2026-10-30T18:23:34.095Z

Reserved: 2026-10-20T19:20:31.973Z

Link: CVE-2026-113870

cve-icon Vulnrichment

Updated: 2026-10-30T18:23:29.361Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-21T19:17:00.110

Modified: 2026-10-30T19:18:09.437

Link: CVE-2026-113870

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T11:00:05Z

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output