Improper Encoding of Server-Supplied JavaScript Values in MongoDB Compass BSON Parsing
MongoDB Compass versions 1.7.0 up to but not including 1.49.15 are affected, and opening a crafted view for editing is the condition. Fixed in 1.49.15.
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- How many real-world setups can hit the bug, from the vendor's advisory and CISA data. It does not know your setup.What do these mean? →
- Specific setups only
- Fix
- Fixed in 1.49.15
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 1 proof of concept on GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
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.
Timeline
- CVE published
- First seen by cve.now
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- MongoDB Compass
From 1.7.0 · fixed in 1.49.15
References 2
GitHub · mehmet-emir-eroglu/CVE-2026-113870
Questions about CVE-2026-113870
What does this mean?
Opening a crafted view for editing in MongoDB Compass can execute code with the privileges of the Compass user. The flaw is improper encoding of JavaScript values in BSON parsing.Source: github.com
Am I affected, and how do I check?
MongoDB Compass versions 1.7.0 inclusive through 1.49.15 exclusive are affected. The installed Compass version number determines whether a given installation falls in that range, and the condition is opening a crafted view for editing.Source: github.com
What should I do about it?
Upgrade MongoDB Compass to version 1.49.15 or later, which is the fixed version.Source: github.com
Is it being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. Public exploit code exists (a proof of concept on GitHub).Source: cve.now feed data