Skip to main content

MongoDB Compass CVE-2026-14881

| EUVDEUVD-2026-47781 HIGH
OS Command Injection (CWE-78)
2026-07-22 cna@mongodb.com
8.4
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft connection file with malicious OIDC browser command
  2. Delivery
    Deliver file to victim (share/chat/setup kit)
  3. Exploit
    Victim imports connection into Compass
  4. Execution
    Victim starts OIDC authentication
  5. Persist
    Compass spawns attacker command
  6. Impact
    Arbitrary 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

MongoDB Compass 1.38.0 <1.49.7

Affected Packages

euvd mongodb_compass fix: 1.49.7

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

Vendor (mongodb) PRIMARY 8.4 HIGH
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
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jul 22, 2026 - 21:03 EUVD
CVE Published
Jul 22, 2026 - 20:16 cve.org
HIGH 8.4

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 91% exploitable
Prevalence
High
official, widely-used MongoDB GUI client across developer and enterprise environments
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy