CVE-2026-84967 Arbitrary command execution via shell-expanded connection string in Launch MongoDB Shell terminal

Medium 5.1 Published Updated

Attackers can execute arbitrary commands on a developer's machine by tricking them into using a malicious connection string in the MongoDB VS Code extension.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-84967?

CVE-2026-84967 is a medium-severity command injection vulnerability in Mongodb Mongodb, published on 3 Sep 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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

Weakness: CWE-78

Which versions are affected by CVE-2026-84967?

1 open source package ship an affected version, including mongodb. It affects 1 product.

PackageAffectedFixed in
mongodb BitnamiFrom 1.13.01.17.1

Products include Mongodb Mongodb.

How do I fix CVE-2026-84967?

Upgrade mongodb to 1.17.1 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-84967 being exploited?

There is no known exploitation of CVE-2026-84967 in the wild and no public exploit code.

All Mongodb Mongodb vulnerabilities

Sources

Also known as BIT-mongodb-2026-84967, GHSA-xc56-7hjg-wv9v.

Is CVE-2026-84967 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free