Arbitrary Command Injection Affecting node-code-sandbox-mcp package, versions <1.3.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.07% (23rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-NODECODESANDBOXMCP-10734133
  • published14 Jul 2025
  • disclosed8 Jul 2025
  • creditAlessio Della Libera

Introduced: 8 Jul 2025

CVE-2025-53372  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade node-code-sandbox-mcp to version 1.3.0 or higher.

Overview

node-code-sandbox-mcp is a Run arbitrary JavaScript inside disposable Docker containers and install npm dependencies on the fly.

Affected versions of this package are vulnerable to Arbitrary Command Injection via the child_process.execSync function. An attacker can execute arbitrary system commands on the host machine by supplying crafted input parameters, which are not properly sanitized.

References

CVSS Base Scores

version 4.0
version 3.1