Description
A weakness has been identified in 0215AndrewFeng ACE-MCP up to 4.10.8. The affected element is the function get_file_snippet of the file getFileSnippet.ts of the component MCP Tool. Executing a manipulation of the argument projectRootPath/filePath can lead to path traversal. The attack may be launched remotely. The exploit has been made available to the public and could be used for attacks. isPathInsideProjectRoot only blocks filePath escaping the attacker-chosen projectRootPath; the root itself is untrusted client input - set projectRootPath=/etc, filePath=hosts and the guard passes. The project was informed of the problem early through an issue report but has not responded yet.
Published: 2026-09-20
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: Path Traversal
Action: Patch
AI Analysis

Impact

The ACE-MCP get_file_snippet function, part of the MCP Tool, accepts a projectRootPath and filePath supplied by a client. An attacker can manipulate these inputs to read files outside the intended project directory, including sensitive system files such as /etc/hosts. This flaw is classed as a path traversal weakness (CWE‑22) and is exploitable remotely, allowing a threat actor to retrieve arbitrary files from the host machine. The CVSS score of 5.3 indicates a moderate risk, and the publicly available exploit on GitHub confirms that the weakness can be actively used in the wild.

Affected Systems

Code contributors and users of 0215AndrewFeng’s ACE‑MCP product, specifically versions up to and including 4.10.8, are impacted. No other vendors or product lines are referenced in the documentation. The vulnerability is tied to the getFileSnippet.ts component of the MCP Tool.

Risk and Exploitability

Because the attack does not require elevated privileges and only relies on client input, any user who can invoke the get_file_snippet endpoint can potentially read arbitrary files. The exploit is already public on GitHub, and the lack of an official fix or response from the project increases the attack surface. Although the EPSS score is unavailable, the moderate CVSS suggests significant exploitation potential, and the issue is not yet listed in CISA’s KEV catalog.

Generated by OpenCVE AI on September 20, 2026 at 20:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade ACE-MCP to a version where the get_file_snippet endpoint correctly validates and sanitizes both projectRootPath and filePath inputs.
  • If an upgrade is not possible, restrict the projectRootPath value to a trusted directory and deny any absolute or parent references before passing it to the function.
  • Configure the application to run under the least‑privilege user and limit file read permissions to the necessary project files only.

Generated by OpenCVE AI on September 20, 2026 at 20:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 20 Sep 2026 19:00:00 +0000

Type Values Removed Values Added
Description A weakness has been identified in 0215AndrewFeng ACE-MCP up to 4.10.8. The affected element is the function get_file_snippet of the file getFileSnippet.ts of the component MCP Tool. Executing a manipulation of the argument projectRootPath/filePath can lead to path traversal. The attack may be launched remotely. The exploit has been made available to the public and could be used for attacks. isPathInsideProjectRoot only blocks filePath escaping the attacker-chosen projectRootPath; the root itself is untrusted client input - set projectRootPath=/etc, filePath=hosts and the guard passes. The project was informed of the problem early through an issue report but has not responded yet.
Title 0215AndrewFeng ACE-MCP MCP Tool getFileSnippet.ts get_file_snippet path traversal
First Time appeared 0215andrewfeng
0215andrewfeng ace-mcp
Weaknesses CWE-22
CPEs cpe:2.3:a:0215andrewfeng:ace-mcp:*:*:*:*:*:*:*:*
Vendors & Products 0215andrewfeng
0215andrewfeng ace-mcp
References
Metrics cvssV2_0

{'score': 4, 'vector': 'AV:N/AC:L/Au:S/C:P/I:N/A:N/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 4.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P'}


Subscriptions

0215andrewfeng Ace-mcp
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-09-20T18:45:09.014Z

Reserved: 2026-09-19T21:43:58.494Z

Link: CVE-2026-94046

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-20T19:17:13.317

Modified: 2026-09-20T19:17:13.317

Link: CVE-2026-94046

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-20T21:00:05Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')