MongoDB for VS Code: command injection
Medium5.1CVE-2026-84967 · Published Sep 3, 2026 · updated Sep 9, 2026
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 versions
| Package | Affected | Fixed in |
|---|---|---|
| MongoDB for VS Code Product | >= 1.13.0, < 1.17.1 | 1.17.1 |
Details and references
- CVSS 4.0
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- Severity from
- the vendor (its own CVE record or advisory)
- Weakness
- CWE-78
More MongoDB advisories
All MongoDB| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Sep 3 | Authenticated KMS request forgery via CRLF injection in GCP key identifier strings | Medium5.7 | 1.20.2 |
| Sep 3 | Heap out-of-bounds read via corrupt nested BSON in field path error message | Medium6.9 | 1.21.8+2 more |
| Sep 3 | Persistent client crash loop via undersized FLE2 insert-update ciphertext in decryption path | High7.1 | 1.20.4 |
| Sep 3 | BSON element injection via NUL-embedded document keys in builder append | Medium5.9 | 4.5.2 |
| Sep 3 | Heap over-read or silent misparse via 32-bit truncation of JSON length in BSON JSON parser | Medium5.9 | 4.5.2 |
| Sep 3 | Heap overflow via truncated base64 encoding of binary fields in length-limited JSON output | Medium6.3 | 1.30.9+1 more |