CVE-2025-53372 node-code-sandbox-mcp has a Sandbox Escape via Command Injection
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- Docker
Description
node-code-sandbox-mcp is a Node.js–based Model Context Protocol server that spins up disposable Docker containers to execute arbitrary JavaScript. Prior to 1.3.0, a command injection vulnerability exists in the node-code-sandbox-mcp MCP Server. The vulnerability is caused by the unsanitized use of input parameters within a call to child_process.execSync, enabling an attacker to inject arbitrary system commands. Successful exploitation can lead to remote code execution under the server process's privileges on the host machine, bypassing the sandbox protection of running code inside docker. This vulnerability is fixed in 1.3.0.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm node-code-sandbox-mcp(npm) | < 1.3.0; <= 1.2.0 | 1.3.0 | Fixed |
| alfonsograziano node-code-sandbox-mcp | = < 1.3.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm node-code-sandbox-mcp(npm) | <= 1.2.0 | No fix listed |
| alfonsograziano node-code-sandbox-mcp | = < 1.3.0 | No fix listed |
| npm node-code-sandbox-mcp(npm) | < 1.3.0 | 1.3.0 |
References
- https://github.com/alfonsograziano/node-code-sandbox-mcp/security/advisories/GHSA-5w57-2ccq-8w95 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- https://github.com/alfonsograziano/node-code-sandbox-mcp/commit/e461a74ecb189b268daac0d972c467b49b2abdd2 patch
- github.com
- github.com product