CVE-2025-53372
node-code-sandbox-mcp has a Sandbox Escape via Command Injection
Also known as GHSA-5w57-2ccq-8w95
Mitigation
- Upgrade node-code-sandbox-mcp to 1.3.0 or later.
Who should check
- Projects that depend on npm package node-code-sandbox-mcp (< 1.3.0)
- Anyone running alfonsograziano node-code-sandbox-mcp < 1.3.0
Vulnerability facts
- Affected
- node-code-sandbox-mcp < 1.3.0
- Fixed in
- 1.3.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 1.51% chance of exploitation in 30 days (percentile 75, 2026-11-26)
- CWE
- CWE-77
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm node-code-sandbox-mcp | < 1.3.0 | 1.3.0 | osv |
| alfonsograziano node-code-sandbox-mcp | < 1.3.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-53372. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-53372.md Affected: node-code-sandbox-mcp < 1.3.0 Fixed in: 1.3.0 Steps: 1. Search this machine and project for node-code-sandbox-mcp (npm), alfonsograziano node-code-sandbox-mcp: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- 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
FAQ
Is CVE-2025-53372 being exploited?
There is no confirmed exploitation: CVE-2025-53372 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.51% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-53372?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2025-53372?
node-code-sandbox-mcp < 1.3.0.
Is there a fix for CVE-2025-53372?
Yes. Fixed in 1.3.0. Upgrade node-code-sandbox-mcp to 1.3.0 or later.
How do I check if I'm affected by CVE-2025-53372?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.