NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Other MCP servers and tools

CVE-2025-53818: GitHub Kanban MCP Server vulnerable to Command Injection

highCVSS 4.0 8.9GHSA-6jx8-rcjx-vmwf

The GitHub Kanban MCP Server (@sunwood-ai-labs/github-kanban-mcp-server) builds a gh shell command from tool arguments in its add_comment tool. Shell characters in the arguments run as extra commands on the host. The package data lists versions up to 0.3.0 and no patched version.

Published Jul 15, 2025 · Analysis Nov 1, 2026

What an attacker can do

The add_comment tool takes repo, issue_number, body and an optional state. In src/handlers/comment-handlers.ts, handleAddComment runs a template string through the Node.js exec API: gh issue close or reopen, then issue_number and repo. exec starts a shell, so a value such as one containing a semicolon ends the gh command and starts another. The advisory's example payload is a semicolon followed by a destructive command and a comment marker.

The usual attacker does not call the tool directly. They plant instructions in content the model reads, such as an issue, comment or web page, and the model calls add_comment with the poisoned argument. This is prompt injection, and it works against clients that auto-approve tool calls. The advisory also describes the flaw as user-initiated and remote command injection on a running MCP server. The CVSS 4.0 vector shows network access with no privileges and no user interaction.

The injected commands run as the user who started the server. That user's gh login is available to them, along with SSH keys, tokens and source code on the machine.

Who is affected

The package data lists @sunwood-ai-labs/github-kanban-mcp-server at 0.3.0 and below. The advisory also links the same vulnerable lines in the v0.4.0 tag, so a later version may carry the same code. Check what your MCP client config launches.

npm ls -g @sunwood-ai-labs/github-kanban-mcp-server

@sunwood-ai-labs/github-kanban-mcp-server

Ecosystem
npm
Affected
<= 0.3.0
Fixed in
No patched version yet
Check
npm ls @sunwood-ai-labs/github-kanban-mcp-server

How to fix it

No patched version is listed. Do not run this server against untrusted content until the maintainers publish a fix. Consider removing it from your MCP client config.

The advisory's recommendation to the maintainers is to replace exec with execFile, which fixes the command and passes arguments as an array, and to put -- before values that are not flags. If you maintain a fork, apply that change to handleAddComment and any other handler that uses exec. Turn off auto-approval for this server's tools so a person sees each call.

How to tell if you were hit

Review MCP client logs for add_comment calls where repo, issue_number or state hold characters such as semicolons, ampersands, pipes, backticks or $(. A legitimate issue_number is digits only. On the host, look for child processes of the node server other than gh and for unexpected files or network connections. Check sessions where the agent read untrusted issues or pages before the call. Beam records MCP tool calls and agent shell commands, and its rules flag risky ones.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

The MCP Server at https://github.com/Sunwood-ai-labs/github-kanban-mcp-server/ is written in a way that is vulnerable to command injection vulnerability attacks as part of some of its MCP Server tool definition and implementation.

Vulnerable tool

The MCP Server exposes the tool add_comment which relies on Node.js child process API exec to execute the GitHub (gh) command, is an unsafe and vulnerable API if concatenated with untrusted user input.

Data flows from the tool definition here which takes in args.issue_number and calls handleAddComment() in this definitino that uses exec in an insecure way.

Vulnerable line of code: https://github.com/Sunwood-ai-labs/github-kanban-mcp-server/blob/main/src/handlers/comment-handlers.ts#L8-L23

export async function handleAddComment(args: {
  repo: string;
  issue_number: string;
  body: string;
  state?: 'open' | 'closed';
}): Promise<ToolResponse> {
  const tempFile = 'comment_body.md';

  try {
    // ステータスの変更が指定されている場合は先に処理
    if (args.state) {
      try {
        const command = args.state === 'closed' ? 'close' : 'reopen';
        await execAsync(
          `gh issue ${command} ${args.issue_number} --repo ${args.repo}`
        );

Exploitation Proof of Concept

When LLMs are tricked through prompt injection (and other techniques and attack vectors) to call the tool with input that uses special shell characters such as ; rm -rf /tmp;# (be careful actually executing this payload) and other payload variations, the full command-line text will be interepted by the shell and result in other commands except of ps executing on the host running the MCP Server.

Reference example from prior security research on this topic, demonstrating how a similarly vulnerable MCP Server connected to Cursor is abused with prompt injection to bypass the developer's intended command:

Cursor defined MCP Server vulnerable to command injection

Impact

User initiated and remote command injection on a running MCP Server.

Recommendation

  • Don't use exec. Use execFile instead, which pins the command and provides the arguments as array elements.
  • If the user input is not a command-line flag, use the -- notation to terminate command and command-line flag, and indicate that the text after the -- double dash notation is benign value.

References and Prior work

  1. Exploiting MCP Servers Vulnerable to Command Injection
  2. Liran's Node.js Secure Coding: Defending Against Command Injection Vulnerabilities

Credit

Disclosed by Liran Tal

Credited to lirantal.

Questions

Is there a fixed version of the GitHub Kanban MCP Server?

The package data lists none. The advisory links the vulnerable code in the v0.4.0 tag as well, so do not assume a newer release is safe without reading handleAddComment.

How would an attacker reach the add_comment tool?

Mainly by prompt injection. Instructions in content the model reads make it call the tool with shell characters in an argument. Clients that auto-approve tool calls run it without asking.

Who found CVE-2025-53818?

Liran Tal disclosed it. The advisory cites Snyk's research on MCP servers vulnerable to command injection as prior work.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Other MCP servers and tools vulnerabilities

All Other MCP servers and tools entries