Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in excel-mcp-server
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| haris-musa | excel-mcp-server | before 0.1.8 | 0.1.8 | Patch available | CNA |
| — | excel-mcp-server (PyPI) | before 0.1.8 | 0.1.8 | Patch available | GHSA-j98m-w3xp-9f56 |
- excel-mcp-server Vendorharis-musa Affected before 0.1.8 Fixed in 0.1.8 Patch available CNA
- excel-mcp-server (PyPI) Vendor— Affected before 0.1.8 Fixed in 0.1.8 Patch available GHSA-j98m-w3xp-9f56
Remediation
- Fix · CNA excel-mcp-server (haris-musa) Fixed in 0.1.8
- Fix · GHSA-j98m-w3xp-9f56 excel-mcp-server (PyPI) Fixed in 0.1.8 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40576
- 2026-10-03 Alias added: GHSA-j98m-w3xp-9f56
- 2026-10-21 EPSS moved to the 50th–90th percentile
- 2026-10-25 EPSS moved to the below the 50th percentile
References
Other 5
- https://github.com/haris-musa/excel-mcp-server/security/advisories/GHSA-j98m-w3xp-9f56
- https://github.com/haris-musa/excel-mcp-server/commit/f51340ecd5778952405044b203d3a2d4c8a46833
- https://github.com/haris-musa/excel-mcp-server
- https://github.com/pypa/advisory-database/tree/main/vulns/excel-mcp-server/PYSEC-2026-331.yaml
- https://pypi.org/project/excel-mcp-server
More haris-musa vulnerabilities
- TI-2026-58773 excel-mcp-server 0.1.8 Arbitrary File Read/Write via stdio mode CVSS 4.0CRITICAL 9.3
Sources
- CVE-2026-40576 · CVE Program
- CVE-2026-40576 · NVD
- FIRST EPSS
- GHSA-j98m-w3xp-9f56 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences