| 标题 | douinc mkdocs-mcp-plugin 0.4.1 Path Traversal |
|---|
| 描述 | mkdocs-mcp-plugin is intended to read documentation from a MkDocs docs directory, but its MCP tools trust caller-supplied path components too broadly:
read_document(file_path, docs_dir="docs")
list_documents(docs_dir="docs")
The implementation uses Path(docs_dir) / file_path and Path(docs_dir).rglob("*.md") directly, without resolving the resulting path and verifying that it remains inside the intended documentation root. An attacker can therefore use .. segments or override docs_dir to access markdown files outside the project's docs directory.
|
|---|
| 来源 | ⚠️ https://github.com/douinc/mkdocs-mcp-plugin/issues/6 |
|---|
| 用户 | SmallW (UID 97245) |
|---|
| 提交 | 2026-04-10 13時41分 (6 月前) |
|---|
| 管理 | 2026-04-26 22時16分 (16 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 359758 [douinc mkdocs-mcp-plugin 直到 0.4.1 server.py read_document/list_documents docs_dir/file_path 目录遍历] |
|---|
| 积分 | 20 |
|---|