Repository navigation
Added
- MCP007: follows paths through
os.path.join,/and tool-argument
reads. A write path built asos.path.join(base, p)orbase / p, or read
from a parameter dict (arguments.get("path"),arguments["path"], and items
of a list read that way in aforloop) now counts as caller-controlled. This
catches CVE-2026-44336 (PraisonAI 4.6.33rules_create) and CVE-2026-84201
(appium-mcp-serverwrite_file/write_files_batch), which 0.22.0 missed. - MCP007: path-builder helpers. A function that returns
os.path.join(base, p)orbase / pof a parameter with no containment
check is a medium finding. This catches CVE-2026-40576 (excel-mcp-server
0.1.7get_excel_path); 0.1.8 stays clean. - MCP007:
x.save(path)(openpyxl, PIL) is a write sink when the path is
joined in the same function.
Fixed
- MCP007: pytest
tmp_path/tmpdirparameters are not caller input.
Verified on real code: catches CVE-2026-40576 (excel-mcp-server 0.1.7), CVE-2026-44336 (PraisonAI 4.6.33) and CVE-2026-84201 (appium-mcp-server 0.1.61), all missed by 0.22.0; patched versions stay clean. SSRF is still out of scope for this rule.