Junglewise Threat Intelligence

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

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

Technologies: MongoDB Compass. Vendors: MongoDB.

Executive brief

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.

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

Related threats