Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @modelcontextprotocol/server-filesystem
  4. ›
  5. CVE-2025-53109

CVE-2025-53109: @modelcontextprotocol/server-filesystem allows for path validation bypass via prefix matching and symlink handling

July 1, 2025 (updated July 2, 2025)

Versions of Filesystem prior to 0.6.3 & 2025.7.1 could allow access to unintended files via symlinks within allowed directories. Users are advised to upgrade to 2025.7.1 to resolve.

Thank you to Elad Beber (Cymulate) for reporting these issues.

References

  • github.com/advisories/GHSA-q66q-fx2p-7w4m
  • github.com/modelcontextprotocol/servers
  • github.com/modelcontextprotocol/servers/commit/d00c60df9d74dba8a3bb13113f8904407cda594f
  • github.com/modelcontextprotocol/servers/security/advisories/GHSA-q66q-fx2p-7w4m
  • nvd.nist.gov/vuln/detail/CVE-2025-53109

Code Behaviors & Features

Detect and mitigate CVE-2025-53109 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.6.2, all versions starting from 2025.1.14 before 2025.7.1

Fixed versions

  • 2025.7.1

Solution

Upgrade to version 2025.7.1 or above.

Weakness

  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

npm/@modelcontextprotocol/server-filesystem/CVE-2025-53109.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:03 +0000.