CVE-2026-14881

MongoDB · MongoDB Compass

A vulnerability in MongoDB Compass allows users to override connection options during the import process, potentially leading to OS command injection.

Executive summary

A critical OS command injection vulnerability in MongoDB Compass allows attackers to execute arbitrary commands by manipulating connection import options.

Vulnerability

This vulnerability is an OS command injection flaw (CWE-78) triggered when importing connection files. The application fails to properly neutralize special elements, allowing an attacker to override restricted connection parameters and execute unauthorized commands on the host system.

Business impact

Successful exploitation of this vulnerability could allow an attacker to gain full control over the host running MongoDB Compass. Given the CVSS score of 7.8, this poses a significant risk to the integrity and availability of local development environments and potentially connected infrastructure. Unauthorized command execution may lead to data exfiltration or the installation of persistent malicious software.

Remediation

Immediate Action: Update MongoDB Compass to version 1.49.7 or later immediately to apply the vendor-provided patch.

Proactive Monitoring: Review system logs for unusual process creation or unauthorized command-line arguments originating from the MongoDB Compass application.

Compensating Controls: Restrict the ability of users to import external connection configuration files from untrusted sources until the software has been updated.

Exploitation status

Public Exploit Available: Unknown

Analyst recommendation

The severity of this command injection vulnerability necessitates immediate action. Administrators and developers should prioritize updating all instances of MongoDB Compass to version 1.49.7 to prevent potential system compromise and unauthorized remote code execution.