CVE-2026-15138 Details
Description
A security vulnerability has been detected in tumf mcp-text-editor up to 1.0.2. This issue affects the function _validate_file_path of the file mcp_text_editor/text_editor.py. Such manipulation of the argument file_path leads to path traversal. The attack can be launched remotely. The exploit has been disclosed publicly and may be used. The vendor closed the GitHub issue for this vulnerability without any explanation.
A path traversal vulnerability has been identified in tumf mcp-text-editor versions through 1.0.2. The issue arises in the _validate_file_path function within mcp_text_editor/text_editor.py, where the path validation is insufficient. The function only checks for the presence of '..' in the file path, allowing absolute paths to bypass this check and access arbitrary files on the filesystem. This vulnerability can be exploited remotely, as the affected function is accessible through the application's API. The read tool can be used to access sensitive files such as /etc/passwd, while the edit tool can create or overwrite files in locations like the user's home directory, including SSH keys and configuration files.
To address this vulnerability, implement proper path validation by confining file access to a designated base directory. Use os.path.realpath to resolve the requested path and verify it against the allowed root using os.path.commonpath, rejecting absolute paths that fall outside the designated directory or contain escaping symlinks. This validation should be applied to both read and write operations, including any automatic directory creation.
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 Jul 9, 2026CISA-ADP
Assessed Jul 9, 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/tumf/mcp-text-editor/ | [email protected] | Source CodeVendor |
| https://github.com/tumf/mcp-text-editor/issues/22 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://vuldb.com/cve/CVE-2026-15138 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/851188 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/376953 | [email protected] | BundlePermission Required |
| https://vuldb.com/vuln/376953/cti | [email protected] | Content Wall |
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 |
|---|---|
| tumf mcp-text-editor | <= 1.0.2 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jul 9, 2026 | CVE Modified | CISA-ADP |
| Jul 9, 2026 | New CVE Received | [email protected] |
Volerion