node-code-sandbox-mcp has a Sandbox Escape via Command Injection
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-77.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| alfonsograziano | node-code-sandbox-mcp | before 1.3.0 | 1.3.0 | Patch available | CNA |
| — | node-code-sandbox-mcp (npm) | before 1.3.0 | 1.3.0 | Patch available | GHSA-5w57-2ccq-8w95 |
- node-code-sandbox-mcp Vendoralfonsograziano Affected before 1.3.0 Fixed in 1.3.0 Patch available CNA
- node-code-sandbox-mcp (npm) Vendor— Affected before 1.3.0 Fixed in 1.3.0 Patch available GHSA-5w57-2ccq-8w95
Remediation
- Fix · CNA node-code-sandbox-mcp (alfonsograziano) Fixed in 1.3.0
- Fix · GHSA-5w57-2ccq-8w95 node-code-sandbox-mcp (npm) Fixed in 1.3.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-53372
- 2026-10-03 Alias added: GHSA-5w57-2ccq-8w95
References
Other 5
- https://github.com/alfonsograziano/node-code-sandbox-mcp/security/advisories/GHSA-5w57-2ccq-8w95
- https://github.com/alfonsograziano/node-code-sandbox-mcp/commit/e461a74ecb189b268daac0d972c467b49b2abdd2
- https://github.com/alfonsograziano/node-code-sandbox-mcp/commit/a5e05fab06b20f2ce68326538c0d6cdf5512e10a
- https://github.com/alfonsograziano/node-code-sandbox-mcp/commit/af860e2258a81ba58f4bfff7ba17e641df0e1178
- https://github.com/alfonsograziano/node-code-sandbox-mcp
Sources
- CVE-2025-53372 · CVE Program
- CVE-2025-53372 · NVD
- FIRST EPSS
- GHSA-5w57-2ccq-8w95 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences