Skip to main content

CVE-2026-113870: CWE-116: Improper Encoding or Escaping of Output in MongoDB Compass

0
High
VulnerabilityCVE-2026-113870cvecve-2026-113870cwe-116
Published: 10/21/2026 (10/21/2026, 18:04:30 UTC)
Source: CVE Database V5
Vendor/Project: MongoDB
Product: Compass

Description

CVE-2026-113870 is a high-severity vulnerability in MongoDB Compass where improper escaping of certain BSON values in stored views can lead to arbitrary code execution when a user opens a specially crafted view for editing. This affects Compass versions from 1.7.0 up to but not including 1.49.15. The vulnerability requires user interaction and network access but no privileges. It impacts confidentiality, integrity, and availability of the affected system.

CVSS v3.1

Score 8.8high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

MongoDB

Compass

Affected versions
>=1.7.0 <1.49.15
GitHub Actionsmore threats →cve
Compass
pkg:github/Compass
Affected versions
>=1.7.0 <1.49.15

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/21/2026, 18:45:28 UTC

Technical Analysis

MongoDB Compass improperly escapes certain BSON values when converting a stored view’s aggregation pipeline into editable source code. If a user connects to a MongoDB deployment containing a specially crafted view and opens that view for editing in Compass, the malformed values can trigger arbitrary code execution with the privileges of the user running Compass. This vulnerability is tracked as CVE-2026-113870 and is categorized under CWE-116 (Improper Encoding or Escaping of Output). It affects Compass versions >=1.7.0 and <1.49.15 and has a CVSS 3.1 score of 8.8, indicating high severity.

Potential Impact

Successful exploitation allows an attacker to execute arbitrary code on the client machine with the privileges of the user running MongoDB Compass. This can lead to full compromise of the user's environment, including confidentiality, integrity, and availability impacts. The attack requires the user to open a maliciously crafted view, so user interaction is necessary.

Mitigation Recommendations

No explicit patch or remediation link is provided in the available data. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid opening views from untrusted MongoDB deployments or untrusted sources. Monitor official MongoDB channels for updates and apply patches once released.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
mongodb
Date Reserved
2026-10-20T19:20:31.973Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6ad9050f4d27ba8daadca021

Added to database: 10/21/2026, 18:31:43 UTC

Last enriched: 10/21/2026, 18:45:28 UTC

Last updated: 10/21/2026, 18:46:14 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses