CVE-2026-113870: CWE-116: Improper Encoding or Escaping of Output in MongoDB 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
Affected software
MongoDB
Compass
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.