Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft connection file with malicious OIDC browser command
-
DeliveryDeliver file to victim (share/chat/setup kit)
-
ExploitVictim imports connection into Compass
-
ExecutionVictim starts OIDC authentication
-
PersistCompass spawns attacker command
-
ImpactArbitrary code runs as victim user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to import an attacker-crafted connection file into MongoDB Compass and then initiate the OIDC authentication flow for that connection - the injected 'custom browser open command' only fires when OIDC login is triggered. The specific enabling condition is that the import path allows overriding the OIDC browser-open command, which is normally settable only globally through Compass settings and not via the connection form. Limiting factors: the attack vector is local (AV:L), it depends on active user interaction (UI:A) to both import the file and start OIDC auth, and it requires the victim to use OIDC authentication rather than another auth mechanism; there is no remote unauthenticated path. |
| Impact | The vendor-supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H) scores 8.4 (High), driven by high impact to all three security properties but tempered by a local attack vector and required active user interaction (UI:A) - the victim must both import the malicious connection and then trigger an OIDC login. There is no EPSS score, no KEV listing, and no POC provided, so this is not a confirmed widespread-exploitation scenario; risk is realistic-but-conditional rather than urgent mass-exploitation. Note a slight tension in the signals: PR:N (no privileges) is accurate for the attacker, but exploitation genuinely depends on social-engineering the victim into importing an untrusted connection file, which is the true limiting factor rather than any technical privilege. Overall this is a meaningful priority for organizations that share or distribute Compass connection files, but lower urgency where connection imports are not routine. |
| Exploit ScenarioDerived | An attacker crafts a Compass connection export file that embeds a malicious OS command in the OIDC browser-open option and distributes it (e.g., via a shared drive, chat, or a 'helpful' setup file). A victim imports the connection into Compass and starts an OIDC login; Compass executes the attacker's command on the victim's machine with the victim's privileges. No public exploit code has been identified, and success requires the local user interaction of importing and then authenticating. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 22, 2026
OS command injection in MongoDB Compass allows an attacker to smuggle a malicious 'browser open command' for the OIDC authentication flow into an importable connection file, a setting normally restricted to global Compass application settings and not editable through the connection form. When a victim imports the crafted connection and initiates OIDC authentication, the attacker-controlled command executes on the victim's host with the user's privileges. No public exploit identified at time of analysis, but the CVSS 4.0 base score is 8.4 (High) reflecting full compromise of confidentiality, integrity, and availability of the local system.
RemediationAI
Vendor-released patch: upgrade to MongoDB Compass v1.49.7 or later (release: https://github.com/mongodb-js/compass/releases/tag/v1.49.7). Until upgraded, do not import connection files from untrusted or unverified sources, since the malicious payload travels inside an imported connection definition. As a compensating control, organizations can restrict or disable use of the connection import feature via managed configuration where available, and avoid OIDC-authenticated connections created from imported files until each has been reviewed; the trade-off is reduced convenience for teams that legitimately share connection configurations. Users who suspect they imported an untrusted connection should inspect and remove any unexpected OIDC browser-open command in their global Compass settings.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
MongoDB Compass is the official GUI client for MongoDB, built on Electron. It supports OIDC (OpenID Connect) authentication, which requires launching a system browser to complete an interactive login; Compass exposes a configurable 'browser open command' for this purpose that is intended to be set only globally through application settings. The flaw is a CWE-78 (Improper Neutralization of Special Elements used in an OS Command) issue: the connection import routine fails to filter out privileged/normally-inaccessible options, so the browser-open command - an OS command string - can be injected via an imported connection definition. Because that string is passed to the operating system to spawn a process during the OIDC flow, attacker-controlled content becomes an executed command. No CPE strings were supplied in the intelligence, so exact affected version ranges rely on the vendor release tag.
Know when Compass gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Local, no attacker privileges, but requires the victim to import a file and trigger OIDC (UI:R); resulting command execution yields high C/I/A on the local host with unchanged scope.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
When importing connections in Compass it is possible to override some connection options that are otherwise can't be changed via connection form. In particular it is possible to provide a custom browser open command for OIDC auth flow that is usually can be set only globally via Compass settings.
Executive ViewAI
MongoDB Compass, a database management tool used by engineering teams across the organization, contains a critical command injection vulnerability (CVE-2026-14881, CVSS 8.4) that enables code execution on developer workstations through malicious database connection files. When an engineer imports a rigged connection file and initiates authentication, attacker-embedded commands execute with full user privileges, exposing credentials, databases, and internal systems. This risk is acute for organizations where database engineers frequently share connection configurations or where attackers can intercept file distribution channels.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict .json connection file sharing to secure, out-of-band channels; (2) Require connection files to be imported only from internally-managed repositories or official documentation; (3) Deploy endpoint detection and response (EDR) tools to flag suspicious child processes from MongoDB Compass; (4) Consider disabling OIDC authentication in MongoDB Compass until patch availability; (5) Implement application allowlisting on developer machines to restrict code execution from temporary directories and user home directories.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e
MongoDB Compass before 14.9.15 can execute arbitrary code with the privileges of the user running Compass when that user
A malicious 3rd party with local access to the Windows machine where MongoDB Compass is installed can execute arbitrary
MongoDB Compass versions prior to 1.53.1 ship an Electron runtime whose bundled TLS root store still contains the compro
MongoDB Compass may be susceptible to local privilege escalation under certain conditions potentially enabling unauthori
Code injection in MongoDB Compass lets an attacker who holds database-creation privileges on a MongoDB server interpolat
MongoDB Compass may accept and use insufficiently validated input from an untrusted external source. Rated medium severi
Prototype pollution in MongoDB Compass's CSV import parsing logic creates a '1-click' command execution path across vers
EUVD-2026-47781
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB