CVE-2026-40576 json
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in excel-mcp-server
published 2026-04-14 6 mo ago modified 2026-10-27 12 d ago also GHSA-j98m-w3xp-9f56 , PYSEC-2026-331 , EUVD-2026-24177
- cvss
- 9.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 40%
- public exploits
- 0
- none known
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.
Patch / fix
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 6 mo ago
Exploit prediction
0.46% chance of exploitation in the next 30 days, higher than 40% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/haris-musa/excel-mcp-server/security/advisories/GHSA-j98m-w3xp-9f56 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H |
| CISA ADP | 3.1 | 9.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H |
| OSV | 3.1 | 9.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H |
| GitHub | 3.1 | 9.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | excel-mcp-server | <0.1.8 |
0.1.8 |
Affected products
- haris-musa excel-mcp-server
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/haris-musa/excel-mcp-server/commit/f51340ecd5778952405044b203d3a2d4c8a46833
web
-
github.com
/haris-musa/excel-mcp-server/security/advisories/GHSA-j98m-w3xp-9f56
exploit, web
-
nvd.nist.gov
/vuln/detail/CVE-2026-40576
advisory
-
github.com
/haris-musa/excel-mcp-server
package
-
github.com
/pypa/advisory-database/tree/main/vulns/excel-mcp-server/PYSEC-2026-331.yaml
web
-
pypi.org
/project/excel-mcp-server
web, package
-
github.com
/advisories/GHSA-j98m-w3xp-9f56
advisory
Sources
- CVE List CVE-2026-40576
- GitHub Advisory GHSA-j98m-w3xp-9f56
- NVD CVE-2026-40576
- OSV PYSEC-2026-331
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.