Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach mcp-file-context-server network endpoint
-
DeliverySend crafted read_context request with traversal path
-
ExploitServer resolves path without sanitization
-
ExecutionRead arbitrary host file contents
-
ImpactExfiltrate credentials, keys, or configs
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 attacker must have network access to the mcp-file-context-server's listening endpoint and be able to issue MCP protocol requests - no authentication is required per the CVSS 4.0 PR:N rating. The vulnerability is triggered by supplying a path argument with directory traversal sequences to the read_context function; no special server configuration or non-default feature flag is required. Exploitation is bounded to file read operations only - no write, execute, or scope-change impact is possible from this flaw alone. Sensitive files must reside on the same host and be readable by the server process user account. Limiting factors: the attacker requires network reachability to the server port (not typically internet-exposed by default in developer tooling contexts), and impact is confined to confidentiality with no lateral movement or code execution capability. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N, score 5.5) indicates a low-complexity, unauthenticated, network-reachable attack path with limited confidentiality impact (VC:L) and no integrity or availability impact. The E:P modifier confirms the existence of public exploit code, which materially elevates real-world exploitation likelihood beyond what the moderate base score alone implies. No CISA KEV listing is present, so widespread active exploitation is not confirmed, though the public PoC removes the skills barrier significantly. The unmaintained state of the project - maintainer has not responded to responsible disclosure - means no coordinated patch window exists, leaving operators without a vendor-supplied fix. Because MCP servers are frequently co-located with developer workstations or AI-assistant backends that store API keys, credentials, and configuration files, even a small deployment footprint carries outsized data-exposure risk per instance. EPSS data was not provided in the input, so probabilistic exploitation likelihood cannot be independently quantified. The signals are broadly consistent: a real, low-barrier read-only file exfiltration risk with no available vendor remediation. |
| Exploit ScenarioDerived | An unauthenticated remote attacker sends a crafted MCP protocol request targeting the read_context function with a path argument containing directory traversal sequences such as ../../../../etc/shadow or ../../../../home/user/.ssh/id_rsa. The server resolves the path without sanitization and returns the file contents in the response. The public exploit published in GitHub issue #15 provides a ready-made template, reducing exploitation to a copy-and-modify exercise. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 27, 2026
Path traversal in bsmi021's mcp-file-context-server 1.0.0 allows remote unauthenticated attackers to read arbitrary files on the host system by supplying crafted path arguments to the read_context function in src/index.ts. The Path Resolution component fails to canonicalize or boundary-check caller-supplied paths, enabling directory escape via sequences such as '../'. A public exploit exists (GitHub issue #15), the project maintainer has not responded to disclosure, and no vendor-released patch is available.
RemediationAI
No vendor-released patch has been identified at time of analysis - the maintainer has not responded to the responsible disclosure filed as GitHub issue #15. As a primary compensating control, operators should remove or disable the mcp-file-context-server deployment entirely; doing so eliminates the attack surface with no side effects beyond loss of the file-context feature. If the server must remain operational, restrict network access to its listening port to explicitly trusted hosts using host-based firewall rules or network segmentation - this does not fix the flaw but prevents unauthenticated remote access. Additionally, run the server process under a least-privilege OS account scoped to a minimal, explicitly defined directory tree; OS-level access controls will prevent traversal outside that tree even if the application logic remains vulnerable. Monitor https://github.com/bsmi021/mcp-file-context-server/ for any patch release and https://vuldb.com/cve/CVE-2026-81486 for updated advisory status.
Affected VersionsENISA
Affected Packages
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
mcp-file-context-server is a Node.js/TypeScript Model Context Protocol (MCP) server that exposes file-reading functionality to AI assistants and related tooling. The affected component, identified by CPE cpe:2.3:a:bsmi021:mcp-file-context-server:*:*:*:*:*:*:*:*, is the read_context function in src/index.ts. CWE-22 (Path Traversal) arises when user-supplied path input is passed to filesystem APIs without first resolving it to a canonical absolute path and verifying it remains within an allowed root directory. The absence of such normalization and prefix-enforcement logic allows an attacker to escape the intended file-serving boundary using relative traversal sequences.
Know when Mcp File Context Server gets its next vulnerability
- 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
Network-reachable with no authentication required; read-only file disclosure limits impact to confidentiality:low with no integrity, availability, or scope-change effect.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability was detected in bsmi021 mcp-file-context-server 1.0.0. Affected by this issue is the function read_context of the file src/index.ts of the component Path Resolution. Performing a manipulation of the argument path results in path traversal. It is possible to initiate the attack remotely. The exploit is now public and may be used. The project was informed of the problem early through an issue report but has not responded yet.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-66833
GHSA-r93x-r7qx-vp33
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB