CVE-2026-14881: MongoDB Compass OS command injection via connection import

CVE-2026-14881 · Severity: high · CVSS 7.8 · Published 2026-07-22

A security vulnerability in MongoDB Compass, a graphical tool for managing MongoDB databases, allows for unauthorized command execution. By tricking a user into importing a malicious connection file, an attacker can override internal settings to run arbitrary commands on the user's computer. This could lead to a full system compromise, data theft, or the installation of malware.

Technologies: MongoDB Compass. Vendors: MongoDB.

Quick answers

Is CVE-2026-14881 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-14881 being exploited in the wild.
How severe is CVE-2026-14881?
High severity, with a CVSS score of 7.8, published 22 July 2026.
Which products and versions are affected?
MongoDB Compass 1.38.0 to 1.49.6.
Is there a fix for CVE-2026-14881?
A patch was published on 2026-05-12: Release of version 1.49.7 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-14881 attacked?
It is attacked with local access, in a network appliance.
Am I affected by CVE-2026-14881?
Check whether you run MongoDB Compass at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A command injection vulnerability (CWE-78) exists in MongoDB Compass when importing connection configurations. The application fails to properly restrict connection options during the import process, allowing an attacker to override the 'browser open' command used for OIDC authentication flows. This setting is normally restricted to global configuration. An attacker can craft a malicious connection file that, when imported and used by a victim, executes arbitrary OS commands with the privileges of the Compass application. The vulnerability affects versions 1.38.0 through 1.49.6 and is resolved in version 1.49.7.

Affected products

  • MongoDB MongoDB Compass 1.38.0 to 1.49.6

Timeline

  • 2026-07-22: advisory: NVD publication date
  • 2026-05-12: patched: Release of version 1.49.7

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.