CVE-2026-84967 PUBLISHED

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

Assigner: mongodb
Reserved: 02.09.2026 Published: 03.09.2026 Updated: 03.09.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.

Metrics

CVSS Vector: 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
CVSS Score: 5.1

Product Status

Vendor MongoDB
Product MongoDB for VS Code
Versions Default: unaffected
  • affected from 1.13.0 to 1.17.1 (excl.)

References

Problem Types

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') CWE