CVE-2026-15522

tugcantopaloglu godot-mcp run_project index.js validatePath path traversal

Published Jul 13, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
Description
A security flaw has been discovered in tugcantopaloglu godot-mcp 2.0.0. Affected by this vulnerability is the function validatePath of the file build/index.js of the component run_project. The manipulation of the argument projectPath results in path traversal. Attacking locally is a requirement. The exploit has been released to the public and may be used for attacks. Upgrading to version 3.0.0 addresses this issue. The patch is identified as eb63add552aa4bd9205395cf91b40654654a3cf2. It is suggested to upgrade the affected component.

Analysis

AI-generated

Technical impact

A path traversal flaw in the validatePath function of godot‑mcp version 2.0.0 permits a local attacker to provide a crafted projectPath argument that resolves to files outside the intended working directory. The code fails to sanitize the supplied path, allowing direct access to arbitrary files on the host system. This is a classic directory traversal weakness (CWE‑22). If the process runs with elevated permissions, a malicious attacker could read or modify sensitive files, potentially leading to privilege escalation or system compromise. Local non‑privileged users can still read or tamper with files that are not protected by OS permissions.

Affected Systems

Affected product: godot‑mcp, version 2.0.0, developed by tugcantopaloglu. The flaw resides in the run_project component’s build/index.js validatePath method. The fix was introduced in version 3.0.0, released with commit eb63add552aa4bd9205395cf91b40654654a3cf2.

Risk and Exploitability

With a CVSS score of 4.8 the vulnerability carries a moderate severity rating, while the EPSS score is below 1 %, indicating a low probability of exploitation in the wild. The vulnerability is not listed in the CISA KEV catalog, but the publicly released exploit and local‑access requirement mean that any user able to run godot‑mcp on the host can abuse the flaw. The risk escalates if the tool is executed with higher privileges, transforming a local read/write flaw into a potential privilege‑escalation vector. Prompt remediation is therefore advised.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade godot‑mcp to version 3.0.0, which contains the fixed validatePath implementation.
  • If an upgrade cannot be performed immediately, apply the patch commit eb63add552aa4bd9205395cf91b40654654a3cf2 to the existing 2.0.0 codebase. Replace the vulnerable validatePath function in build/index.js with the fixed logic from the patch.
  • Restrict local execution of godot‑mcp to trusted users and enforce least‑privilege execution. Ensure the application runs with the minimum privileges necessary to reduce the impact of any remaining path handling flaws.

Generated by OpenCVE AI on August 1, 2026 at 10:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A security flaw has been discovered in tugcantopaloglu godot-mcp 2.0.0. Affected by this vulnerability is the function validatePath of the file build/index.js of the component run_project. The manipulation of the argument projectPath results in path traversal. Attacking locally is a requirement. The exploit has been released to the public and may be used for attacks. Upgrading to version 3.0.0 addresses this issue. The patch is identified as eb63add552aa4bd9205395cf91b40654654a3cf2. It is suggested to upgrade the affected component.
Title tugcantopaloglu godot-mcp run_project index.js validatePath path traversal
First Time appeared Tugcantopaloglu
Tugcantopaloglu godot-mcp
Weaknesses CWE-22
CPEs cpe:2.3:a:tugcantopaloglu:godot-mcp:*:*:*:*:*:*:*:*
Vendors & Products Tugcantopaloglu
Tugcantopaloglu godot-mcp
References
Metrics cvssV2_0

{'score': 4.3, 'vector': 'AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:OF/RC:C'}

cvssV3_0

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

cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-22

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

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Jul 13, 2026, 3:19 PM
Reserved
Jul 12, 2026, 11:36 AM
Status
Deferred
Published
Jul 13, 2026, 3:16 AM
Modified
Oct 24, 2026, 10:10 PM