Skip to main content

mcp-text-editor CVE-2026-15138

| EUVDEUVD-2026-42494 LOW
Path Traversal (CWE-22)
2026-07-09 cna@vuldb.com GHSA-mh32-g5q6-4x93
2.1
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted MCP tool request
  2. Delivery
    Supply path-traversal file_path argument
  3. Exploit
    Bypass _validate_file_path sanitization
  4. Execution
    Access files outside intended directory
  5. Impact
    Read or overwrite sensitive host files

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The mcp-text-editor service must be running and network-accessible to the attacker (AV:N confirmed by CVSS vector). Exploitation requires user interaction (UI:P in the CVSS 4.0 vector), which in MCP context likely means an end-user or AI orchestration layer must actively invoke the text editor tool with a file_path argument - passive exposure alone is insufficient. No authentication is required (PR:N). The vulnerable code path is the _validate_file_path function in mcp_text_editor/text_editor.py, so only invocations that route through this function and accept external file_path arguments are exploitable. Impact is bounded to Low across confidentiality, integrity, and availability (VC:L/VI:L/VA:L), limiting scope to partial file access rather than full host compromise unless the MCP server runs with elevated privileges - a non-default but plausible deployment scenario. No scope change to subsequent systems is indicated (SC:N/SI:N/SA:N).

Impact

The CVSS 4.0 base score of 2.1 is very low, consistent with the partial (Low) confidentiality, integrity, and availability impact ratings (VC:L/VI:L/VA:L) and the UI:P requirement indicating that some user interaction must occur before exploitation can succeed. The AV:N/AC:L/PR:N combination suggests the vulnerability is network-reachable without authentication and is straightforward to trigger once conditions are met, but the low impact ceiling limits real-world damage. The E:P threat modifier confirms a public proof-of-concept exists, lowering the skill bar for exploitation. No CISA KEV listing is present, so there is no confirmed evidence of active exploitation in the wild at time of analysis. SSVC signals: exploitation status is 'proof-of-concept', automatable is uncertain (UI:P introduces a human-in-the-loop or agent-in-the-loop dependency), and technical impact is partial. The most significant risk factor is the absence of any vendor patch and the vendor's unresponsive closure of the GitHub issue, meaning the only remediation path is manual mitigation or abandonment of the tool. Despite the low numeric score, MCP tool servers are often deployed with broad filesystem access, so the actual blast radius may exceed what the Low impact ratings suggest in certain deployment configurations.

Exploit ScenarioDerived

An attacker or a malicious AI agent prompt crafts a tool invocation to the mcp-text-editor service with a file_path value such as ../../../../etc/passwd or ../../../../home/user/.ssh/id_rsa. The _validate_file_path function fails to reject the traversal sequence, allowing the MCP server to read or overwrite the targeted file on behalf of the caller. A public proof-of-concept exists per VulDB submission 851188, reducing the expertise required to reproduce the attack.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 09, 2026

Path traversal in tumf mcp-text-editor up to version 1.0.2 allows remote attackers to read, write, or delete files outside the intended directory by supplying manipulated file path arguments to the _validate_file_path function in mcp_text_editor/text_editor.py. A public exploit has been disclosed (confirmed by VulDB and reflected in the CVSS 4.0 E:P modifier), and the vendor has closed the tracking GitHub issue without explanation, leaving the vulnerability unpatched. The CVSS 4.0 base score of 2.1 reflects limited confidentiality, integrity, and availability impact alongside a required user interaction step.

RemediationAI

No vendor-released patch is identified at time of analysis - the vendor closed GitHub issue #22 (https://github.com/tumf/mcp-text-editor/issues/22) without comment or fix. Until a patched version is released, operators should consider the following specific compensating controls: restrict the MCP server's runtime user account to a tightly scoped chroot or container with an allowlist-based filesystem mount, so that even a successful traversal cannot reach sensitive paths (trade-off: operational complexity); implement an external request filter or middleware that rejects any file_path argument containing ../, absolute path prefixes, or null bytes before the request reaches the MCP tool (trade-off: requires custom instrumentation); or replace this tool with an alternative MCP text editor that has an active maintenance posture. Monitoring filesystem access logs for unexpected path patterns is advisable as a detective control. Consult https://vuldb.com/vuln/376953 for updated status.

Affected VersionsENISA

mcp-text-editor 1.0.2
mcp-text-editor 1.0.1
mcp-text-editor 1.0.0

Affected Packages

euvd mcp_text_editor no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CWE-22 (Path Traversal) arises when user-supplied file path input containing sequences such as ../ or absolute path references is not adequately sanitized before being used in filesystem operations. In this case, the function _validate_file_path within mcp_text_editor/text_editor.py is the designated validation boundary but fails to prevent directory escape. The product is an MCP (Model Context Protocol) server - a lightweight tool-server standard used to expose capabilities to LLM-based agents. Because MCP servers accept structured requests from AI orchestration layers that may relay externally-supplied data, path traversal flaws in this context can bridge trust boundaries between the AI agent and the underlying host filesystem. No CPE string was provided in the source data; affected scope is tumf/mcp-text-editor GitHub repository, versions up to and including 1.0.2.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vuldb) PRIMARY 2.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 6.3 MEDIUM

Network-reachable with no authentication (PR:N), but user interaction required (UI:R); limited low-level CIA impact with no scope change, consistent with partial path traversal reach.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (vuldb).

CVSS VectorVendor: vuldb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 73% exploitable
Prevalence
Rare
niche MCP tool server, minimal enterprise production footprint
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy