CVE-2026-7159: mkdocs-mcp-plugin has a Path Traversal issue
mkdocs-mcp-plugin up to 0.4.1 has a path traversal flaw in the `read_document` and `list_documents` functions of `server.py`. Manipulating the `docs_dir` or `file_path` argument reaches files outside the docs folder. A public exploit exists. The advisory lists no patched version.
Published Apr 28, 2026 · Updated May 6, 2026 · Analysis Oct 29, 2026
What an attacker can do
mkdocs-mcp-plugin exposes a MkDocs documentation site to AI clients through MCP tools. read_document returns a file's contents and list_documents lists files. Both take path arguments, file_path and docs_dir, and the advisory says manipulating them yields path traversal (CWE-22). Input such as ../ segments can therefore point the tools outside the documentation directory.
The advisory describes the attack as remote, with no privileges and no user interaction, and says a working exploit has been published. Any client that can call the MCP server's tools can try it. That includes an AI agent steered by prompt injection from a web page or document it read. In practice, an attacker can list directories and read files that the process running the plugin can read, such as source code, config files and credentials stored beside the docs. The CVSS scores rate each of confidentiality, integrity and availability impact as low. The sources do not describe the write behavior in more detail, so treat read access as the established risk.
The risk is highest when the MCP server is reachable over a network or runs under an account with broad file access.
Who is affected
mkdocs-mcp-plugin (pip) version 0.4.1 and earlier. The affected functions are read_document and list_documents in server.py.
pip show mkdocs-mcp-pluginAlso check your MCP client configuration for entries that launch this plugin, and whether its server is bound to a network interface.
mkdocs-mcp-plugin
- Ecosystem
- PyPI
- Affected
- <= 0.4.1
- Fixed in
- No patched version yet
- Check
pip show mkdocs-mcp-plugin
How to fix it
There is no patched version in the advisory data. The vendor said in the upstream issue that a "fix will be published within a few days". Check the project's releases for a version above 0.4.1 before relying on it, and upgrade with pip install --upgrade mkdocs-mcp-plugin once it appears.
The sources give no workaround. Sensible steps on your own initiative: do not expose the MCP server beyond localhost, run it as a user with access to the docs folder only, or remove the plugin until a fix ships.
How to tell if you were hit
Look in the MCP server and agent logs for read_document or list_documents calls whose file_path or docs_dir contains .., an absolute path, or a location outside your docs folder. Check which files the server process opened, for example .env, SSH keys or config files. Unexpected file listings returned to an AI client are another sign. The advisory gives no log signature.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
A vulnerability was found in douinc mkdocs-mcp-plugin up to 0.4.1. This affects the function read_document/list_documents of the file server.py. Performing a manipulation of the argument docs_dir/file_path results in path traversal. The attack is possible to be carried out remotely. The exploit has been made public and could be used. The vendor confirms, that the "fix will be published within a few days."
Questions
- Is there a fixed version of mkdocs-mcp-plugin for CVE-2026-7159?
Not in the advisory data. Versions up to 0.4.1 are affected, and the vendor only said a fix would come within a few days. Check the project's releases.
- Is a public exploit available?
Yes. The advisory says the exploit has been made public and could be used.
- Can an AI agent trigger it?
The flaw is in MCP tool arguments. A client or agent that can call
read_documentorlist_documentscan pass crafted paths, including when steered by injected instructions.- Is it in CISA's KEV catalog?
No. Public exploit code exists, but no source reports attacks in the wild.
References
Read for this analysis:
- https://nvd.nist.gov/vuln/detail/CVE-2026-7159
- https://github.com/douinc/mkdocs-mcp-plugin/issues/6
- https://github.com/douinc/mkdocs-mcp-plugin/issues/6#issuecomment-4223718119
- https://github.com/douinc/mkdocs-mcp-plugin
- https://vuldb.com/submit/802063
- https://vuldb.com/vuln/359758
- https://vuldb.com/vuln/359758/cti
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 entriesCVE-2026-102610
fast-agent: `fast-agent serve` binds HTTP to 0.0.0.0 with no authentication by default; with --shell this is unauthenticated remote command execution
medium6.4Nov 9, 2026CVE-2026-63655
tsParticles: Unbounded HTTP Request Body Buffering in @tsparticles/mcp-server Leads to Remote DoS
high7.5Nov 9, 2026CVE-2026-76892
tsParticles: Malformed JSON requests can terminate the @tsparticles/mcp-server HTTP process
high8.7Nov 9, 2026CVE-2026-76893
tsParticles: A single anonymous MCP session can monopolize HTTP mode and deny new clients
medium6.9Nov 9, 2026CVE-2026-77604
Code Graph RAG: MCP paginated read_file path traversal / arbitrary file read
high7.5Nov 9, 2026CVE-2026-87008
Code Graph RAG structural tools follow out-of-root symlinks
high7.1Nov 9, 2026
