# CVE-2026-113870: Improper Encoding of Server-Supplied JavaScript Values in MongoDB Compass BSON Parsing

- Severity: High 8.6 (CVSS:4.0, scored by mongodb) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-10-21T18:04:30.607Z
- Modified: 2026-10-30T19:18:09.437Z
- Weaknesses: CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mongodb

## 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.

(As written by CVE List.)

## Affected

- MongoDB Compass: from 1.7.0 before 1.49.15

## Every score

- mongodb: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- mongodb: CVSS:4.0 8.6 High `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`

## References

- <https://www.mongodb.com/docs/compass/release-notes/#mongodb-compass-14915>

## Sources

- CVE List: [CVE-2026-113870](https://www.cve.org/CVERecord?id=CVE-2026-113870), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-113870](https://nvd.nist.gov/vuln/detail/CVE-2026-113870), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-113870 · Whole record: https://cve.day/CVE-2026-113870.json · Rebuilt by cve.day 2026-11-25T22:59:46.670Z
