CVE-2026-7811 Details
Description
A vulnerability has been found in 54yyyu code-mcp up to 4cfc4643541a110c906d93635b391bf7e357f4a8. The affected element is the function is_safe_path of the file src/code_mcp/server.py of the component MCP File Handler. Such manipulation leads to path traversal. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. This product takes the approach of rolling releases to provide continious delivery. Therefore, version details for affected and updated releases are not available. The project was informed of the problem early through an issue report but has not responded yet.
A path traversal vulnerability has been identified in 54yyyu Code-MCP versions prior to commit 4cfc4643541a110c906d93635b391bf7e357f4a8. The issue arises in the MCP File Handler component, specifically within the 'is_safe_path' function of 'src/code_mcp/server.py'. The vulnerability allows for manipulation of file paths, enabling unauthorized access to files outside the intended workspace. This issue can be exploited remotely, and the vulnerability has been publicly disclosed.
It is recommended to implement proper path validation by using canonical path checks to ensure paths remain within the project directory. Reject absolute paths and traversal segments from untrusted path inputs. Centralize and consistently apply path validation across all file-related tools, and add regression tests to cover potential traversal exploits.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 5, 2026CISA-ADP
Assessed May 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/54yyyu/code-mcp/ | [email protected] | ProductSource CodeVendor |
| https://github.com/54yyyu/code-mcp/issues/4 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://vuldb.com/submit/807751 | [email protected] | Permission Required |
| https://vuldb.com/vuln/361071 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/361071/cti | [email protected] | AdvisoryPermission Required |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| 54yyyu code-mcp | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 5, 2026 | New CVE Received | [email protected] |
Volerion