mcp-cve-project

GHSA-p9cv-8g75-4xcg | Symlink swap after validation lets read_text_file return files outside allowedDirectories | Medium |

Advisory Information

Field Value
GHSA ID GHSA-p9cv-8g75-4xcg
CVE ID No CVE assigned
Date (index) 2026-11-11
Affected product @modelcontextprotocol/server-filesystem: Symlink swap after validation lets read_text_file return files outside allowedDirectories
OWASP MCP Top 10 (2025) MCP02 — Privilege Escalation via Scope Creep
Published / disclosed 2026-11-11
Ecosystem npm
Component @modelcontextprotocol/server-filesystem
CVSS score 4.4 MEDIUM CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N
CWE CWE-367
Affected versions < 2.3.0; >= 2025.1.14, <= 2026.8.31
Fixed versions 2.3.0
Fix status Patched
Notes Indexed on 2026-11-16 from the published GitHub repository advisory.

Advisory Breakdown

read_text_file validates a path and then opens it. A symlink swapped in between those steps can make the read return a file outside allowedDirectories. Upgrade mcp-server-filesystem to the patched release.

Fix / Remediation

Upgrade to the patched version listed above. Where the advisory says a setting is still required after the upgrade, apply that setting as well. Keep HTTP MCP listeners authenticated and off untrusted networks until the upgrade is in place.

Detection / verification