Skip to content
EventPast event

MCP reference servers v2.1.0 fix 8 vulnerabilities, including a symlink check bypass

3 reports1 reporting sourcesLatest report

Start here

AI overview

MCP reference servers released v2.1.0, fixing 8 vulnerabilities across three servers: server-filesystem, server-everything, and mcp-server-fetch. server-filesystem 2.0.1 fixed issues including a symlink race condition that caused writes outside the allowed directory (only partially fixed on Windows), path checks stripping trailing quotes or whitespace, and a regression in symlink checks on case-insensitive volumes. Security advisory GHSA-4gxg-m5jx-9j57 states that on case-insensitive file systems, spelling the name of a symlink inside an allowed directory with different letter case could create files and directories outside the allowed directory via create_directory, write_file, and move_file; as of version 2026.8.31 there was no fixed version, and 2.0.1 has fixed it. Another advisory disclosed that list_directory_with_sizes only validates the requested directory path and does not re-validate subpaths when calling fs.stat() on subitems, while fs.stat() follows symlinks, thereby leaking the sizes of files outside the allowed directory; affected versions are 2025.7.1 through 2026.8.31 and 1.0.0 through versions before 2.0.1, and 2.0.1 has fixed it.

Generated by AI from reports · Updated 2026-11-03

Storyline

Developments on the same subject and issue, from earliest to latest

5 events
  1. · 1 reports· Attention40
    MCP fetch server SSRF vulnerability CVE-2026-104120 has no fix
  2. · 3 reports· Attention43

    MCP reference servers v2.1.0 fix 8 vulnerabilities, including a symlink check bypassThis event

  3. · 2 reports· Attention41
    MCP reference server cross-origin environment variable leak vulnerability
  4. · 9 reports· Attention44
    MCP reference servers v2.4.0 fix six vulnerabilities across three servers
  5. · 2 reports· Attention37
    mcp-server-git new version fixes 5 critical vulnerabilities

Progress timeline

Oct 27
Oct 26
Oct 25
  1. MCP Reference ServersSelected
    list_directory_with_sizes in @modelcontextprotocol/server-filesystem follows symbolic links and leaks the sizes of files outside the directory

    A GitHub security advisory disclosed that list_directory_with_sizes in @modelcontextprotocol/server-filesystem validates only the requested directory path, and then, when calling fs.stat() for each sub-item, does not validate the sub-path again; fs.stat() follows symbolic links, thereby leaking the sizes of files outside the allowed directory. Affected versions are 2025.7.1 through 2026.8.31, and 1.0.0 through before 2.0.1; 2.0.1 has fixed it. In the reproduction, a 1536-byte file outside the directory was shown as 1.50 KB through a symbolic link inside the allowed directory, while read_text_file directly reading that link was still rejected. The prerequisite is that an attacker can place a symbolic link inside the allowed directory and have the Agent call the tool, either directly or with the aid of prompt injection.

  2. MCP Reference ServersSelected
    MCP server-filesystem case-variant path bypasses symbolic link check, allowing file creation outside permitted directories

    MCP server-filesystem released security advisory GHSA-4gxg-m5jx-9j57: on case-insensitive file systems (the default on macOS and Windows), spelling the name of a symbolic link within an allowed directory with different letter casing allows creating files and directories outside the allowed directory via create_directory, write_file, and move_file. Affected versions are 2026.8.31 (no fix version yet) and versions 1.0.0 and above but before 2.0.1; 2.0.1 has fixed it. It is a regression introduced in 2026.8.31. The cause is that resolveUnicodeEquivalentPath() compares path components as strings, so LINK does not match link, and returns the remaining path without calling realpath(); the operating system follows the symbolic link when creating the file.

Date not provided
  1. Date not given
    MCP Reference ServersSelected
    MCP reference servers v2.1.0 fix 8 vulnerabilities in three servers

    MCP reference servers release v2.1.0, fixing 8 vulnerabilities in @modelcontextprotocol/server-filesystem, @modelcontextprotocol/server-everything, and mcp-server-fetch. server-filesystem 2.0.1 fixes a symlink race that lets writes escape the allowed directory (only partially fixed on Windows), path checks stripping trailing quotes or whitespace, a regression in symlink checks on case-insensitive volumes, and directory listings leaking the size and modification time of files outside the directory. server-everything 2.0.1 makes the HTTP and SSE transports check the Origin header and stops sending Access-Control-Allow-Origin: *, preventing web pages a user visits from calling server tools. The advisory notes that users upgrading from date-based versions must explicitly install 2.0.1, because package managers order semantic versions below date-based versions.

Related discussion

Total 20 items