Skip to main content
← All vulnerabilities
CVE-2026-113870

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
published
Not listed in CISA KEV
Specific setups only
Fix
Fixed in 1.49.15
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

  1. CVE published
  2. First seen by cve.now
  3. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  4. Record last updated

Affected versions

  • MongoDB Compass

    From 1.7.0 · fixed in 1.49.15

References 2

mongodb.com

GitHub · mehmet-emir-eroglu/CVE-2026-113870

FAQ

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