Skip to content
Threat Feed
high advisory

Path Traversal Vulnerability in MCP

The MCP project is vulnerable to remote path traversal exploitation via the create_file function in app/api/mcp/route.ts, allowing for unauthorized file manipulation.

CVE search metadata

CVE search record: CVE-2026-94044. Severity: high. CVSS: 7.3. KEV: no. Product: MCP (<= f95d035c5317fad81af9828286631053ccb23546). Brief: Path Traversal Vulnerability in MCP. Brief link: https://feed.craftedsignal.io/briefs/2026-09-cve-2026-94044/

A path traversal vulnerability exists in the MCP project developed by 03-lovepreetSingh, specifically affecting all revisions up to f95d035c5317fad81af9828286631053ccb23546. The vulnerability resides in the create_file function located within the app/api/mcp/route.ts file. By manipulating the filePath or content arguments in a network-accessible request, an unauthenticated remote attacker can write files to arbitrary locations on the host filesystem. This project does not utilize standard versioning, making remediation difficult without verifying the specific commit hash. As of the report date, public exploit code is available for this vulnerability, and the project maintainers have not issued a response or patch to address the underlying flaw. Defenders should treat this as a high-priority risk for internet-facing instances of the affected application.

Impact

Successful exploitation of CVE-2026-94044 allows a remote attacker to write arbitrary files to the server's filesystem. Depending on the application's environment and permissions, this could lead to the deployment of malicious scripts, modification of configuration files, or the achievement of remote code execution. Given the availability of public exploit code, the risk of exploitation by opportunistic threat actors is significant. Organizations hosting MCP instances are advised to restrict external access to the affected API endpoint until a security fix is verified and deployed.

Recommendation

  • Monitor web server logs for HTTP requests directed at /api/mcp/route.ts containing directory traversal patterns such as "../" or absolute file paths.
  • Audit deployments to determine if the installed version is at or below commit hash f95d035c5317fad81af9828286631053ccb23546.
  • Implement strict input validation or web application firewall (WAF) rules to block requests containing path traversal sequences directed at the create_file endpoint.
  • Disable the affected API endpoint at the network or application level until a validated patch is provided by the project maintainers.

Immediate actions

Deploy WAF rules or equivalent to block path traversal sequences directed at /api/mcp/route.ts

SOC 24h

Enrichment needed

  • Confirmation of patching or official response from 03-lovepreetSingh (CTI) No vendor fix available; need to track project activity for updates.

Mitigations

Restrict access to the MCP API endpoint to trusted IP ranges

immediate IT Operations

CVE-2026-94044

Detection coverage 1

Detects CVE-2026-94044 Exploitation - Path Traversal in MCP

high

Detects exploitation attempts against CVE-2026-94044 by identifying directory traversal characters in POST requests to the MCP API endpoint.

sigma tactics: initial_access techniques: T1190 sources: webserver

Detection queries are available on the platform. Get full rules →