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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
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
3DescriptionCVE.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.
AnalysisAI
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.
Technical ContextAI
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.
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.
Same weakness CWE-78 – OS Command Injection
View allSame technique Command Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-47781