excel-mcp-server has a Path Traversal issue
## Summary A path traversal vulnerability exists in [`excel-mcp-server`](https://github.com/haris-musa/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. --- ## Details | Field | Value | |-------|-------| | **Package** | [`excel-mcp-server`](https://pypi.org/project/excel-mcp-server/) (PyPI) | | **Repository** | https://github.com/haris-musa/excel-mcp-server | | **Affected versions** | `<= 0.1.7` | | **Tested version** | `0.1.7` — commit [`de4dc75`](https://github.com/haris-musa/excel-mcp-server/commit/de4dc75f6ba629ccd2e097f5963235846be622e6) | | **CWE** | [CWE-22](https://cwe.mitre.org/data/definitions/22.html) — Improper Limitation of a Pathname
- Products
- excel-mcp-server
- Affected versions
- 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7
- Fixed versions
- 0.1.8
- CVEs
- CVE-2026-40576
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 18:47 UTC · Revision 1
Source evidence
excel-mcp-server has a Path Traversal issue
core-osv · Original sourcePublished 14 Apr 2026, 00:03 UTC
## Summary A path traversal vulnerability exists in [`excel-mcp-server`](https://github.com/haris-musa/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. --- ## Details | Field | Value | |-------|-------| | **Package** | [`excel-mcp-server`](https://pypi.org/project/excel-mcp-server/) (PyPI) | | **Repository** | https://github.com/haris-musa/excel-mcp-server | | **Affected versions** | `<= 0.1.7` | | **Tested version** | `0.1.7` — commit [`de4dc75`](https://github.com/haris-musa/excel-mcp-server/commit/de4dc75f6ba629ccd2e097f5963235846be622e6) | | **CWE** | [CWE-22](https://cwe.mitre.org/data/definitions/22.html) — Improper Limitation of a Pathname
osv:GHSA-j98m-w3xp-9f56
excel-mcp-server
Fixed versions: 0.1.8
Complete source record
{
"id": "24efcfc17fe5bf0ee94c5f58c43a503541ca4daa87a863c34b1342328e5c6582",
"url": "https://osv.dev/vulnerability/GHSA-j98m-w3xp-9f56",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "excel-mcp-server has a Path Traversal issue",
"summary": "## Summary A path traversal vulnerability exists in [`excel-mcp-server`](https://github.com/haris-musa/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. --- ## Details | Field | Value | |-------|-------| | **Package** | [`excel-mcp-server`](https://pypi.org/project/excel-mcp-server/) (PyPI) | | **Repository** | https://github.com/haris-musa/excel-mcp-server | | **Affected versions** | `<= 0.1.7` | | **Tested version** | `0.1.7` — commit [`de4dc75`](https://github.com/haris-musa/excel-mcp-server/commit/de4dc75f6ba629ccd2e097f5963235846be622e6) | | **CWE** | [CWE-22](https://cwe.mitre.org/data/definitions/22.html) — Improper Limitation of a Pathname ",
"evidence": "osv:GHSA-j98m-w3xp-9f56",
"products": [
{
"name": {
"value": "excel-mcp-server",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.1.8",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": [
{
"value": "0.1.1",
"evidence": "/affected/0/versions"
},
{
"value": "0.1.2",
"evidence": "/affected/0/versions"
},
{
"value": "0.1.3",
"evidence": "/affected/0/versions"
},
{
"value": "0.1.4",
"evidence": "/affected/0/versions"
},
{
"value": "0.1.5",
"evidence": "/affected/0/versions"
},
{
"value": "0.1.6",
"evidence": "/affected/0/versions"
},
{
"value": "0.1.7",
"evidence": "/affected/0/versions"
}
]
}
],
"severity": "critical",
"structured": {
"id": "GHSA-j98m-w3xp-9f56",
"aliases": [
"CVE-2026-40576",
"GHSA-j98m-w3xp-9f56",
"PYSEC-2026-331"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.1.8"
}
]
}
],
"package": {
"name": "excel-mcp-server",
"purl": "pkg:pypi/excel-mcp-server",
"ecosystem": "PyPI"
},
"versions": [
"0.1.1",
"0.1.2",
"0.1.3",
"0.1.4",
"0.1.5",
"0.1.6",
"0.1.7"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-j98m-w3xp-9f56/GHSA-j98m-w3xp-9f56.json",
"last_known_affected_version_range": "<= 0.1.7"
}
}
],
"modified": "2026-10-27T16:45:05.545325951Z",
"provider": "osv",
"references": [
"https://github.com/haris-musa/excel-mcp-server/security/advisories/GHSA-j98m-w3xp-9f56",
"https://nvd.nist.gov/vuln/detail/CVE-2026-40576",
"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"
],
"provider_metadata": {
"cwe_ids": [
"CWE-22"
],
"severity": "CRITICAL",
"github_reviewed": true,
"nvd_published_at": "2026-04-21T17:16:55Z",
"github_reviewed_at": "2026-04-14T00:03:17Z"
}
},
"related_cves": [
{
"value": "CVE-2026-40576",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/database_specific/severity"
},
"source_id": "core-osv",
"document_id": 462889,
"published_at": "2026-04-14T00:03:17+00:00"
}