{"id":"CVE-2026-113870","aliases":["CVE-2026-113870"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Encoding of Server-Supplied JavaScript Values in MongoDB Compass BSON Parsing","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-10-21T18:04:30.607Z","modified":"2026-10-30T19:18:09.437Z","severity":{"scorer":"mongodb","scheme":"CVSS:4.0","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","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"mongodb","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"mongodb","scheme":"CVSS:4.0","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","score":8.6,"rating":"HIGH"}],"cwes":["CWE-116"],"affected":[{"ranges":[{"type":"semver","introduced":"1.7.0","fixed":"1.49.15","status":"affected"}],"vendor":"MongoDB","product":"Compass","repo":"https://github.com/mongodb-js/compass","source":"cvelist"}],"references":[{"url":"https://www.mongodb.com/docs/compass/release-notes/#mongodb-compass-14915","tags":[],"sources":["cvelist","nvd"]}],"credits":["Hamza Amirache","Hanaa Bouhia"],"assigner":"mongodb","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-30T18:22:23.550Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-113870","url":"https://www.cve.org/CVERecord?id=CVE-2026-113870","licence":"CVE Terms of Use","modified":"2026-10-30T18:23:34.095Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-113870","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-113870","licence":"Public domain","modified":"2026-10-30T19:18:09.437Z"}],"updatedAt":"2026-11-25T22:59:46.670Z","epss":{"score":0.00364,"percentile":0.32224,"date":"2026-12-01T12:00:22.000Z"}}