CVE-2026-84967: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in MongoDB MongoDB for VS Code
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.
CVSS v4.0
Score 5.1medium
Affected software
MongoDB
MongoDB for VS Code
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The MongoDB extension for Visual Studio Code version 1.13.0 contains an OS command injection vulnerability (CWE-78) due to improper neutralization of special characters in connection strings. This flaw allows an unauthenticated remote attacker to inject arbitrary command elements into the command line executed by the extension's integrated terminal. Exploitation requires persuading the developer to accept a crafted connection string and to open the shell feature, with no privilege requirements on the developer's machine. The confirmation dialog shown to the developer does not display the injected content, increasing the risk of unnoticed exploitation.
Potential Impact
Successful exploitation could allow an attacker to execute arbitrary commands on the developer's machine within the context of the integrated terminal. This could lead to unauthorized command execution, potentially compromising the developer's environment. However, exploitation requires user interaction and acceptance of a malicious connection string, and no privileges are required on the developer's machine. The CVSS 4.0 base score is 5.1, indicating a medium severity impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, developers should exercise caution when accepting connection strings from untrusted sources and avoid opening the shell feature with unverified connection targets. Monitoring vendor communications for updates or patches is recommended.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mongodb
- Date Reserved
- 2026-09-02T17:58:52.742Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a9990d3acd9273b491c221a
Added to database: 09/03/2026, 15:22:59 UTC
Last enriched: 09/07/2026, 13:05:14 UTC
Last updated: 10/18/2026, 18:48:24 UTC
Views: 72
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.