A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      Digital Forensics, IRR & Breach Readiness
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-67366

CVE-2025-67366: filesystem-mcp Path Traversal Flaw

CVE-2025-67366 is a path traversal vulnerability in filesystem-mcp v0.5.8 that allows attackers to bypass directory restrictions via symlinks and access unauthorized files. This article covers technical details, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-67366 Overview

A critical path traversal vulnerability has been identified in @sylphxltd/filesystem-mcp version 0.5.8, an MCP (Model Context Protocol) server that provides file content reading functionality. This vulnerability exists in the read_content tool and stems from improper symlink handling in the path validation mechanism. The flaw allows attackers to bypass directory restrictions and access sensitive files outside the intended operational scope.

Critical Impact

Attackers can leverage symlinks within allowed directories to read arbitrary files on the system, potentially exposing sensitive configuration files, credentials, and other confidential data.

Affected Products

  • @sylphxltd/filesystem-mcp v0.5.8
  • MCP server implementations using the vulnerable read_content tool
  • Applications relying on filesystem-mcp for sandboxed file access

Discovery Timeline

  • 2026-01-07 - CVE-2025-67366 published to NVD
  • 2026-01-08 - Last updated in NVD database

Technical Details for CVE-2025-67366

Vulnerability Analysis

This path traversal vulnerability (CWE-23: Relative Path Traversal) exploits a critical timing mismatch between path validation and file access operations. The resolvePath function performs its security checks on the path string before symlinks are resolved. However, when fs.readFile subsequently processes the validated path, it automatically resolves any symlinks encountered during file access.

This creates a time-of-check to time-of-use (TOCTOU) race condition where the validated path differs from the actual file being accessed. An attacker who can create or leverage existing symlinks within the allowed directory can effectively escape the sandboxed environment and read files anywhere on the filesystem.

The vulnerability is particularly dangerous in environments where the filesystem-mcp server is used to provide controlled file access to AI models or automated systems, as it undermines the entire security boundary.

Root Cause

The root cause lies in the order of operations within the path validation logic. The resolvePath function validates paths in their symbolic form rather than their canonical, fully-resolved form. When a user requests access to a path like /allowed/symlink, the validation passes because /allowed/ is within the permitted scope. However, if symlink points to /etc/passwd, the subsequent fs.readFile call will follow the symlink and return the contents of the external file.

The proper approach would be to resolve all symlinks first using fs.realpath() and then validate whether the canonical path falls within the allowed directories.

Attack Vector

The attack requires network access to the MCP server. An attacker can exploit this vulnerability by:

  1. Identifying or creating a symlink within an allowed directory that points to a target file outside the sandbox
  2. Requesting the symlinked path through the read_content tool
  3. Receiving the contents of the external file, bypassing all directory restrictions

The vulnerability requires no authentication or user interaction to exploit, making it accessible to any network-connected attacker who can communicate with the MCP server.

For technical details on this vulnerability, refer to the GitHub Issue #134 Discussion which documents the symlink handling flaw. The attack leverages the discrepancy between validation-time path checking and access-time symlink resolution in the read_content tool implementation.

Detection Methods for CVE-2025-67366

Indicators of Compromise

  • File access logs showing reads of sensitive system files (e.g., /etc/passwd, /etc/shadow, private keys) through the MCP server
  • Unusual symlink creation events within directories accessible to the filesystem-mcp service
  • Access patterns indicating systematic enumeration of symlinked paths
  • Log entries showing successful file reads for paths that should be outside the allowed scope

Detection Strategies

  • Monitor filesystem-mcp server logs for file access requests containing symlink references
  • Implement file integrity monitoring on critical system files to detect unauthorized reads
  • Deploy behavioral analysis to identify patterns consistent with directory traversal exploitation
  • Configure audit logging to track symlink creation and resolution within allowed directories
  • Use SentinelOne's Storyline technology to correlate file access events with network connections to the MCP server

Monitoring Recommendations

  • Enable verbose logging on the filesystem-mcp server to capture all file access requests
  • Set up alerts for access attempts to sensitive file paths commonly targeted in path traversal attacks
  • Monitor for anomalous file read patterns that deviate from normal application behavior
  • Implement real-time correlation of file access events with the process context to identify exploitation attempts

How to Mitigate CVE-2025-67366

Immediate Actions Required

  • Restrict network access to the filesystem-mcp server to trusted clients only
  • Audit all symlinks within directories accessible to the MCP server and remove any pointing outside the intended scope
  • Implement network-level access controls to limit exposure of the vulnerable service
  • Consider temporarily disabling the read_content tool until a patch is applied

Patch Information

Users should monitor the GitHub Repository for Filesystem MCP for security updates addressing this vulnerability. Review GitHub Issue #134 for the latest information on patches and fixes.

Until an official patch is released, organizations should implement the workarounds below to reduce exposure to this vulnerability.

Workarounds

  • Remove or disable symlinks within directories accessible to the filesystem-mcp service
  • Implement additional validation at the application layer to resolve and verify canonical paths before file access
  • Deploy a reverse proxy or API gateway with path validation rules that reject requests containing symlinks
  • Run the filesystem-mcp server in a containerized environment with restricted filesystem access
  • Use filesystem mount options like nosymfollow where supported to prevent symlink traversal
bash
# Configuration example
# Disable symlink following on the filesystem level (Linux)
# Mount the allowed directory with nosymfollow option
mount -o remount,nosymfollow /path/to/allowed/directory

# Alternatively, audit existing symlinks in the allowed directory
find /path/to/allowed/directory -type l -exec ls -la {} \;

# Remove symlinks pointing outside the allowed scope
find /path/to/allowed/directory -type l ! -exec test -e {} \; -delete

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechFilesystem Mcp

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-23
  • Technical References
  • GitHub Repository for Filesystem MCP

  • GitHub Issue #134 Discussion
  • Latest CVEs
  • CVE-2026-26188: Craft CMS Freeform Plugin XSS Vulnerability

  • CVE-2025-70092: OpenSourcePOS v3.4.1 XSS Vulnerability

  • CVE-2025-14282: Dropbear SSH Authentication Bypass Flaw

  • CVE-2020-37167: ClamAV Bytecode Interpreter RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • English
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use