{"id":"CVE-2026-113870","state":"PUBLISHED","title":"Improper Encoding of Server-Supplied JavaScript Values in MongoDB Compass BSON Parsing","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.","publishedAt":"2026-10-21T18:04:30.607Z","updatedAt":"2026-10-30T18:23:34.095Z","severity":{"score":8.6,"label":"High","version":"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","source":"mongodb"},"assigner":"mongodb","products":["MongoDB Compass"],"affected":[{"vendor":"MongoDB","product":"Compass","defaultStatus":"unaffected","versions":[{"version":"1.7.0","status":"affected","lessThan":"1.49.15","versionType":"semver"}],"repo":"https://github.com/mongodb-js/compass"}],"references":["https://www.mongodb.com/docs/compass/release-notes/#mongodb-compass-14915"],"weaknesses":["CWE-116"],"ingestedAt":"2026-10-30T18:30:06.554Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/113xxx/CVE-2026-113870.json","commit":"221eb56a0685eb8d913f27d15aa83d9f17ee0d22","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-113870","state":"PUBLISHED","datePublished":"2026-10-21T18:04:30.607Z","dateUpdated":"2026-10-30T18:23:34.095Z","assignerShortName":"mongodb","assignerOrgId":"a39b4221-9bd0-4244-95fc-f3e2e07f1deb","dateReserved":"2026-10-20T19:20:31.973Z"},"containers":{"cna":{"title":"Improper Encoding of Server-Supplied JavaScript Values in MongoDB Compass BSON Parsing","descriptions":[{"lang":"en","value":"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":[{"vendor":"MongoDB","product":"Compass","defaultStatus":"unaffected","versions":[{"version":"1.7.0","status":"affected","lessThan":"1.49.15","versionType":"semver"}],"repo":"https://github.com/mongodb-js/compass"}],"references":[{"url":"https://www.mongodb.com/docs/compass/release-notes/#mongodb-compass-14915"}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseSeverity":"HIGH","baseScore":8.8,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"ACTIVE","vulnConfidentialityImpact":"HIGH","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"HIGH","baseScore":8.6,"vectorString":"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"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-116","lang":"en","description":"CWE-116: Improper Encoding or Escaping of Output","type":"CWE"}]}],"providerMetadata":{"shortName":"mongodb","orgId":"a39b4221-9bd0-4244-95fc-f3e2e07f1deb","dateUpdated":"2026-10-21T18:04:30.607Z"},"credits":[{"lang":"en","value":"Hamza Amirache","type":"finder"},{"lang":"en","value":"Hanaa Bouhia","type":"finder"}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 1.0.5"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-30T18:22:23.550709Z","id":"CVE-2026-113870","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-30T18:23:34.095Z"}}]}}}