Skip to content

CVE-2026-40576 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in excel-mcp-server

CriticalCVSS 9.4 EPSS 0.48%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

Description

excel-mcp-server is a Model Context Protocol server for Excel file manipulation. A path traversal vulnerability exists in excel-mcp-server versions up to and including 0.1.7. When running in SSE or Streamable-HTTP transport mode (the documented way to use this server remotely), an unauthenticated attacker on the network can read, write, and overwrite arbitrary files on the host filesystem by supplying crafted filepath arguments to any of the 25 exposed MCP tool handlers. The server is intended to confine file operations to a directory set by the EXCEL_FILES_PATH environment variable. The function responsible for enforcing this boundary — get_excel_path() — fails to do so due to two independent flaws: it passes absolute paths through without any check, and it joins relative paths without resolving or validating the result. Combined with zero authentication on the default network-facing transport and a default bind address of 0.0.0.0 (all interfaces), this allows trivial remote exploitation. This vulnerability is fixed in 0.1.8.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
pypi excel-mcp-server(PyPI) < 0.1.8; <= 0.1.7; = 0.1.1; = 0.1.2 +5 more 0.1.8 Fixed
haris-musa excel-mcp-server = < 0.1.8 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi excel-mcp-server(PyPI) < 0.1.8 0.1.8
pypi excel-mcp-server(PyPI) = 0.1.1 No fix listed
pypi excel-mcp-server(PyPI) = 0.1.2 No fix listed
pypi excel-mcp-server(PyPI) = 0.1.3 No fix listed
pypi excel-mcp-server(PyPI) = 0.1.4 No fix listed
pypi excel-mcp-server(PyPI) = 0.1.5 No fix listed
pypi excel-mcp-server(PyPI) = 0.1.6 No fix listed
pypi excel-mcp-server(PyPI) = 0.1.7 No fix listed
haris-musa excel-mcp-server = < 0.1.8 No fix listed
pypi excel-mcp-server(PyPI) <= 0.1.7 No fix listed

References