AAK-MCP-TEXTEDITOR-CVE-2026-15138-001: tumf mcp-text-editor path traversal (affected up to 1.0.2)
- Severity
- MEDIUM
- Category
- Supply Chain (
supply-chain) - Scanner
agent_audit_kit/scanners/mcp_cve_pins_2026_07.py- Auto-fixable
- No.
- SARIF name
McpTextEditorPathTraversal
What it detects
The mcp-text-editor MCP server's _validate_file_path (mcp_text_editor/text_editor.py) mishandles a caller-supplied file_path, allowing remote path traversal (CVE-2026-15138, CVSS 6.3). NVD lists versions up to 1.0.2 as affected; the vendor closed the report without an explanation, so treat <= 1.0.2 (and unpinned) as exposed and move to the latest release.
How to fix
Upgrade mcp-text-editor past 1.0.2 to the latest release and pin it; verify the traversal fix landed. Constrain the editor to an allow-listed root and reject .. / absolute paths in file_path.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-MCP-TEXTEDITOR-CVE-2026-15138-001
Limitations
Reads mcp-text-editor in requirements*.txt at any depth and, at the project root only, in pyproject.toml, Pipfile, package.json, .mcp.json, mcp.json, claude_desktop_config.json and the Pipfile.lock, poetry.lock, uv.lock, package-lock.json, pnpm-lock.yaml and yarn.lock lockfiles, taking the lowest version a range allows and reporting a reference that states no version. The dependency is not read when it is declared in a sub-directory manifest (services/api/pyproject.toml), in .cursor/mcp.json or .vscode/mcp.json, or in a lockfile format the reader does not parse (pdm.lock). A file over 2 MB, or a lockfile over 32 MiB, is not read. A declaration nested more than 64 levels deep in package.json, a TOML manifest or an MCP config (an MCP server more than 62) is still judged, and reported without a line; a lockfile entry keeps its line at any depth.
References
- CVE: CVE-2026-15138
- OWASP MCP Top 10: MCP04:2025 (Software Supply Chain Attacks & Dependency Tampering), MCP05:2025 (Command Injection & Execution)
- OWASP Agentic Top 10: ASI02 (Tool Misuse and Exploitation), ASI04 (Agentic Supply Chain Vulnerabilities)
- Adversa AI MCP Top 25 (AAK-defined ids): ADV-SUPPLY-01 (Runtime Package Fetch)
- CSA AI Controls Matrix (AICM): AIS-07, STA-08
All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-MCP-TEXTEDITOR-CVE-2026-15138-001.md: the page then shows that text, with the registry reference appended under it.