Description
A component of the MongoDB extension for Visual Studio Code does not neutralize special characters in a connection string before that value is placed into a command line the extension composes for an integrated terminal. An unauthenticated remote unauthorized-user who persuades a developer to accept a user-supplied connection target, and then to open the extension's shell feature, can place characters of the unauthorized-user’s choosing into that command line. No privileges on the developer's machine are required, but several user actions are. The confirmation the developer sees does not display the supplied text.
Published: 2026-09-03
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An attacker can force the MongoDB Visual Studio Code extension to insert unsanitized characters from a user‑supplied connection string into a shell command that the extension runs in the integrated terminal. The resulting shell expansion allows the attacker to run arbitrary commands on the developer’s machine, compromising integrity and confidentiality of local data. This is a classic command injection flaw (CWE‑78).

Affected Systems

The affected product is the MongoDB for VS Code extension. All versions of the extension that contain the vulnerable component are impacted, but no specific version numbers are listed in the CVE report. The vulnerability applies only when the extension’s Launch MongoDB Shell terminal is used with any connection string supplied by an external user.

Risk and Exploitability

The CVSS score of 5.1 indicates moderate complexity, but the need for user interaction and confirmation reduces the likelihood of exploitation. EPSS data is unavailable, and the vulnerability is not listed in the CISA KEV catalogue. Because the attacker must persuade a developer to accept a malicious connection target and open the shell, the risk depends on social engineering success rather than technical exploitation alone.

Generated by OpenCVE AI on September 3, 2026 at 16:38 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the MongoDB for VS Code extension to the latest version that includes command‑line sanitization.
  • If an update is not yet available, disable or remove the Launch MongoDB Shell feature until a fix is released.
  • Verify any connection strings supplied by external users before opening the shell, and avoid using untrusted input.

Generated by OpenCVE AI on September 3, 2026 at 16:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

Thu, 03 Sep 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 03 Sep 2026 16:45:00 +0000

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb mongodb For Vs Code
Vendors & Products Mongodb
Mongodb mongodb For Vs Code

Thu, 03 Sep 2026 15:30:00 +0000

Type Values Removed Values Added
Description A component of the MongoDB extension for Visual Studio Code does not neutralize special characters in a connection string before that value is placed into a command line the extension composes for an integrated terminal. An unauthenticated remote unauthorized-user who persuades a developer to accept a user-supplied connection target, and then to open the extension's shell feature, can place characters of the unauthorized-user’s choosing into that command line. No privileges on the developer's machine are required, but several user actions are. The confirmation the developer sees does not display the supplied text.
Title Arbitrary command execution via shell-expanded connection string in Launch MongoDB Shell terminal
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Mongodb Mongodb For Vs Code
cve-icon MITRE

Status: PUBLISHED

Assigner: mongodb

Published:

Updated: 2026-09-03T15:30:54.635Z

Reserved: 2026-09-02T17:58:52.742Z

Link: CVE-2026-84967

cve-icon Vulnrichment

Updated: 2026-09-03T15:30:49.753Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-03T16:18:25.703

Modified: 2026-09-03T16:25:43.557

Link: CVE-2026-84967

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-03T16:45:06Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')