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

CVE-2026-7149: kaggle-mcp has a Path Traversal issue

mediumCVSS 4.0 5.5 · 3.1 7.3GHSA-q882-jc55-6343

The dexhunter kaggle-mcp server (up to 0.1.0, rolling release up to commit 406127ff) has a path traversal in prepare_kaggle_dataset. The competition_id argument is used to build a directory with no check, so a caller can create directories and extract downloads outside the data folder. No patched version exists.

Published Apr 27, 2026 · Updated May 6, 2026 · Analysis Nov 5, 2026

What an attacker can do

The prepare_kaggle_dataset tool in src/kaggle_mcp/server.py takes one argument, competition_id. Per the issue report, it builds the path as Path(__file__).parent / "data" / competition_id with no slug validation and no check that the result stays under data/. os.makedirs(data_dir, exist_ok=True) runs before any Kaggle API call, so the directory is created even if the download then fails. In src/kaggle_mcp/utils.py, download_dir.mkdir(parents=True) repeats the pattern, and downloaded zip contents are extracted into the chosen path.

The reporter's proof of concept is a JSON-RPC tools/call with competition_id set to ../../../../tmp/kaggle-poc, which should create /tmp/kaggle-poc. The reporter did not complete a dynamic replay, and shows no file reads.

Who can send that request? Any client of the MCP server, which includes an AI agent steered by a prompt injection. The effect is writing directories and extracted Kaggle data to places the server's user can write. The reporter's own rating is High, 8.1. The CVE record rates it medium.

Who is affected

The pip package kaggle-mcp at 0.1.0 and earlier, per the data. The project uses a rolling release, so no version boundary is published. The advisory names commit 406127ffcb2b91b8c10e20e6c2ca787fbc1dc92d and earlier.

pip show kaggle-mcp

If you installed from the repository, check your checkout with git log.

kaggle-mcp

Ecosystem
PyPI
Affected
<= 0.1.0
Fixed in
No patched version yet
Check
pip show kaggle-mcp

How to fix it

There is no patched version. The maintainer has not responded to the public issue, which is still open with no linked fix. The reporter suggests validating competition_id against a strict slug pattern, resolving the final path and rejecting anything outside the base directory, and failing before any directory is created.

Until a fix exists, do not expose the server to untrusted callers. Run it with a user and container that can write only to a scratch directory, or stop using it.

How to tell if you were hit

Search the filesystem for unexpected directories created by the server's user, especially under /tmp or in parent directories of the install path, and for extracted Kaggle files outside the server's data folder. Review MCP request logs for prepare_kaggle_dataset calls where competition_id contains ../. Beam records agent MCP tool calls, so those calls can be reviewed there.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

A vulnerability has been found in dexhunter kaggle-mcp up to 406127ffcb2b91b8c10e20e6c2ca787fbc1dc92d. This vulnerability affects the function prepare_kaggle_dataset of the file src/kaggle_mcp/server.py. The manipulation of the argument competition_id leads to path traversal. The attack is possible to be carried out remotely. The exploit has been disclosed to the public and may be used. This product adopts a rolling release strategy to maintain continuous delivery. Therefore, version details for affected or updated releases cannot be specified. The project was informed of the problem early through an issue report but has not responded yet.

Questions

Is there a fixed version of kaggle-mcp?

No. The project is a rolling release, the issue is open, and the maintainer has not responded.

Is CVE-2026-7149 exploited in the wild?

No source says so. The advisory says an exploit was disclosed publicly and may be used.

Can it read files?

The report shows directory creation and extraction of downloaded archives outside the data folder. It shows no file reads.

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