CVE-2026-7039 tufantunc ssh-mcp index.ts shell.write command injection
Local attackers can execute arbitrary commands via the shell.write function in the ssh-mcp tool, posing a risk to developers using this MCP server.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-7039?
CVE-2026-7039 is a high-severity command injection vulnerability in tufantunc ssh-mcp, published on 26 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A security vulnerability has been detected in tufantunc ssh-mcp up to 1.5.0. The affected element is the function shell.write of the file src/index.ts. Such manipulation of the argument Description leads to command injection. The attack must be carried out locally. The exploit has been disclosed publicly and may be used. The project was informed of the problem early through an issue report but has not responded yet.
Which versions are affected by CVE-2026-7039?
How do I fix CVE-2026-7039?
No fix has been published for CVE-2026-7039 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-7039 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-7039 exists.
Sources
Also known as GHSA-fw7f-26v6-92xm.