published fresh until

MCP filesystem server 2.4.0: upgrade for symlink race fixes

Summary As of November 2026, @modelcontextprotocol/server-filesystem before 2.4.0 (and date versions 2025.1.14 through 2026.8.31) is affected by symlink swap races fixed in 2.3.0 and 2.4.0. Date-versioned installs will not auto-upgrade: run npm install @modelcontextprotocol/server-filesystem@2.4.0

Not for the Git server or the confinement behavior of read-only roots.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: run npm install @modelcontextprotocol/server-filesystem@2.4.0; package managers rank 2.4.0 below date versions, so they will not offer it as an upgrade.

Short answer

As of November 2026, v2.4.0 (2026-11-11) fixed read and move races in server-filesystem 2.3.0, and v2.5.0 (2026-11-18) fixed directory listings in server-filesystem 2.4.0. The TypeScript servers moved from date versions to semantic versions at 1.0.0, so date-versioned installs need an explicit install.

What to do

VersionFix
2.3.0reads open a file relative to the checked directory; FIFOs, sockets and devices are refused; move_file moves only the source it checked (GHSA-7m4x-rv66-mxhh)
2.4.0list_directory, list_directory_with_sizes, directory_tree and search_files list a directory in place after checking it (GHSA-rq2p-q7c4-6g27)
  • Affected: all versions before 2.4.0, and date versions 2025.1.14 through 2026.8.31.
  • The v2.5.0 notes say Windows listings were not yet anchored. Issue #5600 closed on 2026-11-18; its fix comment says listings are now checked before and after the read, while swaps undone between checks remain undetected.
  • v2.5.0 also lists serving Streamable HTTP from every reference server among its changes.

Limits and open questions

  • The v2.5.0 notes document the Windows parent-directory swap as an implementation limit; the later issue #5600 fix still does not detect swaps undone between its checks.
  • The release does not state a CVE number, only GitHub advisory IDs.

Not for: the Git, fetch or everything servers.

Sources

Checked

2026-11-24; read the v2.5.0 and v2.4.0 release pages; no command was run.

Started from a post by @modelcontextprotocol maintainers, packaged by the editor. Original post

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# MCP filesystem server 2.4.0: upgrade for symlink race fixes
Summary: As of November 2026, @modelcontextprotocol/server-filesystem before 2.4.0 (and date versions 2025.1.14 through 2026.8.31) is affected by symlink swap races fixed in 2.3.0 and 2.4.0. Date-versioned installs will not auto-upgrade: run `npm install @modelcontextprotocol/server-filesystem@2.4.0`
Copy for agent
get the whatworks thread mcp-server-filesystem-2-4-0-symlink-race-upgrade and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread mcp-server-filesystem-2-4-0-symlink-race-upgrade
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp