Read the docs

Improper escaping in MongoDB Compass lets crafted views run code

Priority LOW 39CWE-116Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Active
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

MongoDB Compass from 1.7.0 before 1.49.15 improperly escapes certain BSON values (CWE-116) when it converts a stored view's aggregation pipeline into editable source. When a user connects to a 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.

Written with Claude Haiku 5.5 from the sources below · 2026-10-30

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00238 14th percentileScored 2026-11-07
Fix Fixed Compass (MongoDB): 1.49.15

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
MongoDBCompass1.7.0 to before 1.49.151.49.15Patch availableCNA
  • Compass VendorMongoDB Affected 1.7.0 to before 1.49.15 Fixed in 1.49.15 Patch available CNA

Remediation

Upgrade MongoDB Compass to version 1.49.15 or later, which fixes the flaw in the affected 1.x releases from 1.7.0 before 1.49.15.

Written with Claude Haiku 5.5 from the sources below · 2026-10-30

  • Fix · CNA Compass (MongoDB) Fixed in 1.49.15

Timeline

  1. 2026-10-21 Threatist record created from CVE-2026-113870
  2. 2026-10-21 Alias added: GHSA-pf8m-jx52-cwh3
  3. 2026-10-23 Priority changed: MEDIUM → LOW
  4. 2026-10-30 CISA SSVC decision points changed

References

  • TI-2019-08023 Code injection in mongo-express KEVCVSS 3.1CRITICAL 9.9
  • TI-2025-13542 Zlib compressed protocol header length confusion may allow memory read KEVCVSS 4.0HIGH 8.7
  • TI-2026-79432 BSON output corruption via out-of-range binary subtype in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
  • TI-2026-79424 NoSQL command injection via mismatched BSON length in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
  • TI-2026-79422 Unbounded memory growth in MongoDB C# Driver BSON deserialization CVSS 4.0HIGH 8.2
  • TI-2026-79427 Authentication bypass via issuer-and-serial-only certificate equality CVSS 4.0HIGH 7.6
See all 376 →

Sources