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

Published Sep 3, 2026
·
Updated

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.

Affected Software

1 affected component
MongoDB MongoDB extension for Visual Studio Code

Event History

Sep 3, 2026
CVE Published
via MITRE·03:18 PM
Data Sourced
via MITRE·03:18 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is realistically exposed to this issue?

Developers using the MongoDB extension for Visual Studio Code are exposed when they accept a connection target supplied by an untrusted party and then use the extension's integrated shell feature. The attacker does not need an account or privileges on the developer's machine.

2

What interaction is required for exploitation?

An attacker must persuade the developer to accept a user-supplied connection target and then open the extension's shell feature. Exploitation is not automatic; it requires several user actions.

3

Will the developer be able to verify the supplied connection string in the confirmation prompt?

No. The confirmation shown to the developer does not display the supplied connection-string text, so it cannot be relied on to identify malicious shell-special characters.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203