Vulnerability · Published Oct 21, 2026 · Assigned by mongodb

CVE-2026-113870Improper Encoding of Server-Supplied JavaScript Values in MongoDB Compass BSON Parsing

High 8.8

In plain English

A high-severity security flaw in Compass from MongoDB. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 15% of all known vulnerabilities).

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)0.2%top 85.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected products (as reported)

VendorProductVersions
MongoDB Compass 1.7.0 – before 1.49.15

Weakness: CWE-116 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References