Cyber Resilience

CVE-2026-40576

Path Traversal

Published
21 April 2026
Modified
22 April 2026
CVSS Score v3.1 9.4
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H
EPSS Score 0.0039 32th percentile
Risk Priority 68 floored blend · peak EPSS

Summary

CVE-2026-40576 is a critical-severity Path Traversal (CWE-22) vulnerability. Its CVSS base score is 9.4 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 32th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

This vulnerability is AI-related — categorised as AI Agent Protocols and Integrations; in the Protocol-Specific Risks risk domain.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2026-40576 is a path traversal vulnerability (CWE-22) in the excel-mcp-server, a Model Context Protocol server designed for Excel file manipulation. The issue affects versions up to and including 0.1.7, specifically when the server is running in SSE or Streamable-HTTP transport mode, which is the documented method for remote usage. The vulnerability stems from flaws in the get_excel_path() function, which fails to properly enforce confinement to the directory specified by the EXCEL_FILES_PATH environment variable: it allows absolute paths to pass unchecked and joins relative paths without resolution or validation. This results in a CVSS v3.1 base score of 9.4 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H).

An unauthenticated attacker on the same network can exploit this vulnerability remotely by supplying crafted filepath arguments to any of the 25 exposed MCP tool handlers. The server binds to 0.0.0.0 (all interfaces) by default with no authentication, enabling trivial exploitation. Successful attacks allow the attacker to read, write, and overwrite arbitrary files on the host filesystem, potentially leading to full compromise depending on the targeted files and server privileges.

The GitHub security advisory (GHSA-j98m-w3xp-9f56) confirms the vulnerability and states that it is fixed in version 0.1.8. Security practitioners should upgrade to 0.1.8 or later, verify the EXCEL_FILES_PATH configuration, and consider restricting network access to the server until patching is complete.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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),…

more

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.

CWE(s)

AI Security AnalysisAI

AI Category
AI Agent Protocols and Integrations
Risk Domain
Protocol-Specific Risks
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
Matched keywords: mcp, model context protocol

Related Threats

MITRE ATT&CK Enterprise Techniques

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-53110Shared CWE-22
CVE-2026-7149Shared CWE-22
CVE-2026-9468Shared CWE-22
CVE-2026-7788Shared CWE-22
CVE-2026-25592Shared CWE-22
CVE-2026-7599Shared CWE-22
CVE-2026-42075Shared CWE-22
CVE-2024-5548Shared CWE-22
CVE-2026-7403Shared CWE-22
CVE-2026-5597Shared CWE-22

Affected Assets

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V5.3.2

Mitigating Controls (NIST 800-53 r5) AI

Enforces the intended directory access authorizations that path traversal would otherwise bypass.

Input validation directly neutralizes special path elements before pathname construction occurs.

Least privilege reduces the impact of any unauthorized file access obtained via traversal.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-02 partial match
prevents

Patching/maintenance can remediate known path-traversal flaws in deployed software (partial prevention of exploitability) but does nothing to stop the coding defect from being introduced in the first place.

PR.AA-05 none match
prevents

PR.AA-05 defines and reviews access policies but does not address code-level pathname neutralization, so neither direction prevents CWE-22.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing in development catches path traversal via static/dynamic analysis.

prevents

Secure SDLC mandates input validation and path sanitization that directly prevent path traversal.

prevents

Application security requirements include rules for safe file handling and canonicalization.

prevents

Secure architecture principles require least-privilege file access and directory isolation.

prevents

Secure coding standards explicitly forbid unsafe path construction and mandate safe APIs.

mitigates

Information access restriction limits which files an application may read or write.

References