Skip to main content

mcp-file-context-server CVE-2026-81486

| EUVDEUVD-2026-66833 MEDIUM
Path Traversal (CWE-22)
2026-08-27 VulDB GHSA-r93x-r7qx-vp33
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Reach mcp-file-context-server network endpoint
  2. Delivery
    Send crafted read_context request with traversal path
  3. Exploit
    Server resolves path without sanitization
  4. Execution
    Read arbitrary host file contents
  5. Impact
    Exfiltrate 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

mcp-file-context-server 1.0.0

Affected Packages

euvd mcp_file_context_server 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

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

Vendor (VulDB) PRIMARY 5.5 MEDIUM
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
vuln.today AI 5.3 MEDIUM

Network-reachable with no authentication required; read-only file disclosure limits impact to confidentiality:low with no integrity, availability, or scope-change effect.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/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
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
Aug 27, 2026 - 02:22 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)
CVE Published
Aug 27, 2026 - 01:30 cve.org
MEDIUM 5.5

DescriptionCVE.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

EPSS Score
0.5%
Top 61% exploitable
Prevalence
Rare
niche MCP server project, minimal enterprise footprint
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment 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 MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
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