The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • 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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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
      DFIR, Breach Readiness, & Compromise Assessments
    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
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • 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-2026-23851

CVE-2026-23851: SiYuan Path Traversal Vulnerability

CVE-2026-23851 is a path traversal flaw in SiYuan that allows authenticated users to copy files from unauthorized filesystem locations. This article covers the technical details, affected versions, and mitigation steps.

Published: January 23, 2026

CVE-2026-23851 Overview

CVE-2026-23851 is a path traversal vulnerability affecting SiYuan, a personal knowledge management system. Versions prior to 3.5.4 contain a logic vulnerability in the /api/file/globalCopyFiles endpoint that allows authenticated users to copy files from any location on the server's filesystem into the application's workspace without proper path validation.

The vulnerability exists in the api/file.go source code where the globalCopyFiles function accepts a list of source paths from the JSON request body. While the code checks if the source file exists using filelock.IsExist(src), it fails to validate whether the source path resides within the authorized workspace directory, enabling arbitrary file read operations through path traversal techniques.

Critical Impact

Authenticated attackers can exploit this vulnerability to access sensitive system files, configuration files, credentials, and other confidential data stored on the server, potentially leading to further system compromise.

Affected Products

  • SiYuan versions prior to 3.5.4

Discovery Timeline

  • 2026-01-19 - CVE-2026-23851 published to NVD
  • 2026-01-19 - Last updated in NVD database

Technical Details for CVE-2026-23851

Vulnerability Analysis

This path traversal vulnerability (CWE-22) allows authenticated users to bypass directory restrictions and access files outside the intended workspace directory. The core issue lies in the insufficient validation of user-supplied file paths in the /api/file/globalCopyFiles API endpoint.

When processing file copy requests, the application only verifies that the specified source file exists but does not enforce boundaries to ensure the source path remains within the authorized workspace. This oversight allows attackers to use path traversal sequences (such as ../) or absolute paths to reference files anywhere on the server's filesystem.

The vulnerability requires authentication to exploit, meaning an attacker must have valid credentials or session access to the SiYuan application. Once authenticated, the attacker can craft malicious API requests to copy sensitive system files—such as /etc/passwd, /etc/shadow, application configuration files, or database credentials—into the workspace where they become accessible.

Root Cause

The root cause is improper input validation in the globalCopyFiles function within api/file.go. The function accepts source file paths (srcs) from user-controlled JSON request data and passes them directly to file operations without validating that these paths are contained within the authorized workspace directory. The existence check using filelock.IsExist(src) is insufficient as it only confirms the file exists, not that the user should have access to it.

Attack Vector

An authenticated attacker can exploit this vulnerability by sending a crafted HTTP POST request to the /api/file/globalCopyFiles endpoint with malicious source paths. The attack is network-accessible and requires low complexity to execute. By specifying absolute paths or relative paths containing traversal sequences, the attacker can copy arbitrary files from the server filesystem into the SiYuan workspace, effectively exfiltrating sensitive data.

The vulnerability enables reading of system configuration files, application secrets, SSH keys, database credentials, and other sensitive information stored on the server. This information disclosure could facilitate further attacks, including privilege escalation or lateral movement within the network.

Detection Methods for CVE-2026-23851

Indicators of Compromise

  • Unusual API requests to /api/file/globalCopyFiles containing path traversal sequences (../) or absolute system paths
  • Unexpected files appearing in the SiYuan workspace directory that match system configuration files
  • Access logs showing repeated requests to the vulnerable endpoint with varying source paths
  • Presence of sensitive system files (e.g., /etc/passwd, .env, configuration files) copied into workspace directories

Detection Strategies

  • Monitor HTTP request logs for POST requests to /api/file/globalCopyFiles containing suspicious path patterns
  • Implement web application firewall (WAF) rules to detect and block path traversal attempts in API parameters
  • Review SiYuan application logs for file copy operations with source paths outside the workspace directory
  • Deploy file integrity monitoring on sensitive system directories to detect unauthorized access

Monitoring Recommendations

  • Enable detailed logging for the SiYuan API endpoints, particularly file operations
  • Configure SIEM alerts for patterns indicative of path traversal attacks in web application logs
  • Monitor for anomalous file access patterns in application workspace directories
  • Regularly audit files created in SiYuan workspaces for unexpected or sensitive content

How to Mitigate CVE-2026-23851

Immediate Actions Required

  • Upgrade SiYuan to version 3.5.4 or later immediately to address this vulnerability
  • Review recent API access logs for signs of exploitation attempts
  • Audit workspace directories for any files that may have been copied from unauthorized locations
  • Restrict network access to SiYuan instances to trusted users and networks where possible
  • Implement additional authentication controls if public-facing deployment is required

Patch Information

The vulnerability has been patched in SiYuan version 3.5.4. The fix implements proper path validation to ensure that source paths in file copy operations are restricted to the authorized workspace directory. Security patches are available through the following commits:

  • Security patch commit b2274ba
  • Security patch commit f8f4b51

Additional details are available in the GitHub Security Advisory GHSA-94c7-g2fj-7682 and the GitHub Issue #16860.

Workarounds

  • Restrict access to the SiYuan application to trusted users only until patching is complete
  • Implement network-level access controls (firewall rules, VPN requirements) to limit exposure
  • Deploy a reverse proxy or WAF with rules to filter path traversal patterns in API requests
  • Disable or restrict the /api/file/globalCopyFiles endpoint if not required for operations
  • Monitor and audit all file operations within the application pending upgrade to the patched version

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechSiyuan

  • SeverityHIGH

  • CVSS Score8.3

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Issue Tracker

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-40318: SiYuan Path Traversal Vulnerability

  • CVE-2026-33670: SiYuan Path Traversal Vulnerability

  • CVE-2026-30869: SiYuan Path Traversal Vulnerability

  • CVE-2026-25992: SiYuan Path Traversal Vulnerability
Default Legacy - Prefooter | 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
  • 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

English