{"id":"CVE-2026-113870","kind":"vulnerability","aliases":["CVE-2026-113870"],"related":[],"title":"MongoDB Compass: crafted view opens and runs code as the user","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.","summary":"MongoDB Compass fails to escape certain BSON values when it converts a stored view's aggregation pipeline into editable source. A user who connects to a deployment with a specially crafted view and opens that view for editing can have arbitrary code executed with their own privileges.","severity":"high","cvss":8.8,"epss":0.00238,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["desktop","developers","mongodb-compass","package"],"not_affected_if":["no-compass-use","views-from-trusted-deployments-only"],"how_to_check":"Check the installed Compass version under Help > About, or run the Compass package manager query for mongodb-compass and compare it to the fixed release.","fix":"Upgrade MongoDB Compass to a fixed release; the sources do not name the exact version.\nIf you cannot upgrade yet, avoid opening views from untrusted or unknown MongoDB deployments in Compass.","status":"open","published_at":"2026-10-21T19:17:00+00:00","first_seen_at":"2026-10-23T21:57:29+00:00","triaged_at":"2026-10-23T22:32:56+00:00","updated_at":"2026-10-24T13:15:54+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-10-23T22:32:56Z","model":"claude-haiku-5-5","output":{"fix":"Upgrade MongoDB Compass to a fixed release; the sources do not name the exact version.\nIf you cannot upgrade yet, avoid opening views from untrusted or unknown MongoDB deployments in Compass.","reach":"network","title":"MongoDB Compass: crafted view opens and runs code as the user","impact":"high","summary":"MongoDB Compass fails to escape certain BSON values when it converts a stored view's aggregation pipeline into editable source. A user who connects to a deployment with a specially crafted view and opens that view for editing can have arbitrary code executed with their own privileges.","category":"package","who_cares":["mongodb-compass","desktop","developers"],"confidence":0.6,"needs_auth":"yes","worst_case":"Code runs on the developer's machine with their privileges.","analyst_note":"Find the fixed Compass version and advisory text from the NVD link or MongoDB's security advisory page; sources did not name it.","how_to_check":"Check the installed Compass version under Help > About, or run the Compass package manager query for mongodb-compass and compare it to the fixed release.\nunknown","needs_analyst":true,"not_affected_if":["no-compass-use","views-from-trusted-deployments-only"],"user_interaction":"yes","needs_special_setup":"no","severity_if_unknown":"high"},"cost_usd":0.000523,"input_tokens":2929,"output_tokens":461,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-113870':14A,17A '-2026':13A,16A 'aggreg':39B,84C 'arbitrari':64B,112C 'bson':30B,76C 'caus':111C 'certain':29B,75C 'code':8A,65B,113C 'compass':2A,22B,25B,72C,123C 'connect':47B,92C 'contain':97C 'convert':34B,79C 'craft':3A,54B,100C 'cve':12A,15A 'deploy':50B,96C 'desktop':18B 'develop':19B 'edit':42B,61B,87C,107C 'escap':28B,74C 'execut':66B,115C 'fail':26B 'improp':73C 'mongodb':1A,21B,24B,71C,95C 'mongodb-compass':20B 'open':5A,57B,103C 'packag':23B 'pipelin':40B,85C 'privileg':70B,118C 'run':7A,122C 'sourc':43B,88C 'special':53B,99C 'store':36B,81C 'user':11A,45B,91C,121C 'valu':31B,77C,109C 'view':4A,37B,55B,59B,82C,101C,105C","nicknames":[],"mitigations":[],"who_affected":null,"tier":"B","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-21T19:17:00+00:00","kev":null,"cvss_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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"cna@mongodb.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-113870","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-113870","severity":null,"published_at":"2026-10-21T19:17:00+00:00","modified_at":"2026-10-22T17:36:46+00:00","first_seen_at":"2026-10-23T21:57:29+00:00","fetched_at":"2026-10-23T22:29:02+00:00","note":null},{"source":"epss","external_id":"CVE-2026-113870","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-113870","severity":null,"published_at":null,"modified_at":null,"first_seen_at":"2026-10-24T13:15:54+00:00","fetched_at":"2026-10-24T13:15:54+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}