mcp-docker@1.0.0 vulnerabilities

Model Context Protocol server for Docker management with AI assistants

  • latest version

    1.2.2

  • latest non vulnerable version

  • first published

    1 months ago

  • latest version published

    11 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the mcp-docker package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • C
    Command Injection

    mcp-docker is a Model Context Protocol server for Docker management with AI assistants

    Affected versions of this package are vulnerable to Command Injection due to insufficient validation of list-format commands in the docker_exec_command tool. The docker_exec_command tool accepts a user-controlled cmd parameter that can be provided as a list, and before the introduction of the validate_command_safety() helper, only string-based commands were inspected for dangerous patterns, allowing malicious list elements to bypass these checks and be sent unfiltered to the Docker engine for execution.

    How to fix Command Injection?

    Upgrade mcp-docker to version 1.0.2 or higher.

    [,1.0.2)