Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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

0
Critical
VulnerabilityCVE-2026-40576cvecve-2026-40576cwe-22
Published: Tue Apr 21 2026 (04/21/2026, 16:35:15 UTC)
Source: CVE Database V5
Vendor/Project: haris-musa
Product: excel-mcp-server

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/21/2026, 17:01:16 UTC

Technical Analysis

The excel-mcp-server, a Model Context Protocol server for Excel file manipulation, suffers from a path traversal vulnerability (CWE-22) in versions up to 0.1.7. When operating in SSE or Streamable-HTTP transport mode, the server accepts crafted filepath arguments to any of its 25 MCP tool handlers without authentication. The function get_excel_path() intended to confine file operations to a directory defined by EXCEL_FILES_PATH fails due to two flaws: it allows absolute paths without checks and joins relative paths without resolving or validating them. Combined with default binding to 0.0.0.0 and no authentication, this enables trivial remote exploitation to access or modify arbitrary files. The vulnerability is fixed in version 0.1.8.

Potential Impact

An unauthenticated remote attacker can exploit this vulnerability to read, write, and overwrite arbitrary files on the host filesystem where excel-mcp-server is running. This can lead to information disclosure, data tampering, and potential denial of service. The CVSS 3.1 base score is 9.4 (critical), reflecting network attack vector, no required privileges or user interaction, and high impact on integrity and availability.

Mitigation Recommendations

A patch is available in excel-mcp-server version 0.1.8 that fixes the path traversal vulnerability. Users should upgrade to version 0.1.8 or later to remediate this issue. Since this is a cloud service, the vendor manages remediation for the hosted service; users should verify with the vendor that the service is updated. Until patched, restricting network access to the server and avoiding use of the vulnerable transport modes can reduce exposure.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-14T13:24:29.475Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null
Is Cloud Service
true

Threat ID: 69e7a9cf19fe3cd2cde6d34d

Added to database: 4/21/2026, 4:46:07 PM

Last enriched: 4/21/2026, 5:01:16 PM

Last updated: 4/21/2026, 5:56:28 PM

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses