CVE-2026-84967: MongoDB extension for Visual Studio Code command injection in connection string

CVE-2026-84967 · Severity: medium · CVSS 4.3 · Published 2026-09-03

The MongoDB extension for Visual Studio Code fails to sanitize special characters in connection strings before passing them to the terminal. An attacker can trick a developer into accepting a malicious connection target, and when the extension's shell feature is used, arbitrary characters can be injected into the command line—potentially leading to unintended command execution. The developer sees no clear indication of the malicious input before it runs.

Technologies: MongoDB. Vendors: MongoDB.

Quick answers

Is CVE-2026-84967 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-84967 being exploited in the wild.
How severe is CVE-2026-84967?
Medium severity, with a CVSS score of 4.3, published 3 September 2026.
Which products and versions are affected?
MongoDB extension for Visual Studio Code <UNKNOWN>.
Is there a fix for CVE-2026-84967?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-84967 attacked?
It is attacked over the network.
Am I affected by CVE-2026-84967?
Check whether you run MongoDB extension for Visual Studio Code or MongoDB at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The vulnerability is a command injection flaw in the MongoDB Visual Studio Code extension. The extension composes command-line arguments from user-supplied connection strings without properly neutralizing special characters, allowing an attacker to inject arbitrary shell metacharacters. The attack vector requires social engineering (convincing a developer to accept a malicious connection target and then open the shell feature), but no local privileges or additional authentication are needed. An attacker can inject characters into the composed command line, potentially achieving arbitrary code execution in the context of the developer's machine. A patch is expected to sanitize the connection string input before it reaches the terminal.

Affected products

  • MongoDB extension for Visual Studio Code <UNKNOWN>

Timeline

  • 2026-09-03: disclosed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.