A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-41894

CVE-2026-41894: SiYuan Path Traversal Vulnerability

CVE-2026-41894 is a path traversal flaw in SiYuan that allows authenticated attackers to read arbitrary workspace files via double URL encoding. This article covers technical details, affected versions, and mitigation.

Published: April 30, 2026

CVE-2026-41894 Overview

CVE-2026-41894 is a path traversal vulnerability in SiYuan, an open-source personal knowledge management system. This vulnerability exists in versions prior to 3.6.5 and stems from an incomplete fix for CVE-2026-30869. The original patch added a denylist check (IsSensitivePath) but failed to address the root cause — a redundant url.PathUnescape() call in the serveExport() function.

An authenticated attacker can exploit this vulnerability using double URL encoding (%252e%252e) to bypass security controls and traverse directories, enabling arbitrary file reads within the workspace. This includes access to highly sensitive data such as the full SQLite database (siyuan.db), kernel logs, and all user documents.

Critical Impact

Authenticated attackers can read arbitrary workspace files including the complete SQLite database, kernel logs, and all user documents through double URL encoding bypass.

Affected Products

  • SiYuan versions prior to 3.6.5
  • SiYuan installations with network-accessible export functionality
  • Self-hosted SiYuan instances with authenticated user access

Discovery Timeline

  • 2026-04-24 - CVE-2026-41894 published to NVD
  • 2026-04-27 - Last updated in NVD database

Technical Details for CVE-2026-41894

Vulnerability Analysis

This path traversal vulnerability (CWE-22) represents a bypass of a previous security fix. The original CVE-2026-30869 mitigation implemented a denylist approach via the IsSensitivePath() function, which checked for known sensitive file paths. However, this fix was incomplete because it did not address the underlying issue: a redundant url.PathUnescape() call in the serveExport() function.

When the server processes export requests, the path is URL-decoded multiple times. An attacker can craft a request with double-encoded directory traversal sequences (%252e%252e which decodes to %2e%2e then to ..). The first decode happens during normal HTTP request processing, leaving %2e%2e. The redundant PathUnescape() call then decodes this to .., allowing the attacker to escape the intended export directory.

The vulnerability requires authentication, meaning an attacker must have valid credentials to exploit it. However, once authenticated, they can access any file within the SiYuan workspace, including the SQLite database containing all notes and user data.

Root Cause

The root cause is a redundant url.PathUnescape() call in the serveExport() function within kernel/server/serve.go. When combined with standard HTTP request decoding, this creates a double-decode scenario that bypasses path validation. The previous fix only added a denylist check without removing or properly handling the redundant decode operation.

Attack Vector

The attack is network-based and requires low complexity to execute. An authenticated attacker sends a crafted HTTP request to the export endpoint with double URL-encoded path traversal sequences. For example, a path like /export/%252e%252e/%252e%252e/siyuan.db would be decoded twice, ultimately resolving to ../../siyuan.db, allowing access to the database file outside the intended export directory.

The security patch in kernel/server/serve.go adds a proper path validation check:

go
 		}
 
 		fullPath := filepath.Join(exportBaseDir, decodedPath)
+		if !gulu.File.IsSubPath(exportBaseDir, fullPath) {
+			c.Status(http.StatusUnauthorized)
+			return
+		}
+
 		if util.IsSensitivePath(fullPath) {
 			logging.LogErrorf("refuse to export sensitive file [%s]", c.Request.URL.Path)
 			c.Status(http.StatusForbidden)

Source: GitHub Commit Details

Additionally, the patch in kernel/util/path.go extends the sensitive file detection:

go
 		return true
 	}
 
+	// *.db/*.log
+	if strings.HasSuffix(p, ".db") || strings.HasSuffix(p, ".log") {
+		return true
+	}
+
 	// 用户家目录下的敏感目录(小写比较)
 	homePrefixes := []string{
 		strings.ToLower(filepath.Join(HomeDir, ".ssh")),

Source: GitHub Commit Details

Detection Methods for CVE-2026-41894

Indicators of Compromise

  • HTTP requests to export endpoints containing double URL-encoded sequences such as %252e, %252f, or %255c
  • Access logs showing requests attempting to reach siyuan.db, .log files, or parent directory paths through the export functionality
  • Unusual file access patterns in SiYuan workspace directories from the web server process
  • Authentication events followed immediately by export endpoint requests with encoded path characters

Detection Strategies

  • Implement web application firewall (WAF) rules to detect double URL-encoded path traversal patterns (%25 followed by hex values)
  • Monitor HTTP access logs for requests containing %252e%252e or similar double-encoded directory traversal sequences
  • Configure intrusion detection systems to alert on export endpoint requests that contain unusual encoding patterns
  • Review SiYuan kernel logs for "refuse to export" messages which may indicate exploitation attempts

Monitoring Recommendations

  • Enable detailed logging for the SiYuan export functionality and monitor for anomalous access patterns
  • Set up alerts for any access attempts to .db or .log files through web interfaces
  • Monitor file system access patterns for the SiYuan process, specifically watching for reads outside the expected export directories
  • Implement rate limiting on export endpoints to slow potential enumeration attacks

How to Mitigate CVE-2026-41894

Immediate Actions Required

  • Upgrade SiYuan to version 3.6.5 or later immediately to address this vulnerability
  • Review access logs for signs of exploitation, particularly requests containing double URL-encoded characters
  • Restrict network access to SiYuan instances to trusted users and networks only
  • Consider temporarily disabling the export functionality if immediate patching is not possible

Patch Information

The vulnerability is fixed in SiYuan version 3.6.5. The patch implements proper subpath validation using gulu.File.IsSubPath() to verify that resolved file paths remain within the intended export directory. Additionally, the sensitive path detection has been extended to explicitly block access to .db and .log files.

For detailed patch information, refer to:

  • GitHub Release v3.6.5
  • GitHub Security Advisory GHSA-hjh7-r5w8-5872
  • GitHub Commit Details

Workarounds

  • Restrict network access to SiYuan to localhost only or trusted internal networks using firewall rules
  • Implement a reverse proxy with URL decoding normalization and path validation before requests reach SiYuan
  • Remove or restrict access to the export endpoint at the web server level if not required
  • Enable authentication enforcement and limit user accounts to only those who require access
bash
# Example: Restrict SiYuan to localhost only using iptables
iptables -A INPUT -p tcp --dport 6806 -s 127.0.0.1 -j ACCEPT
iptables -A INPUT -p tcp --dport 6806 -j DROP

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 Score7.1

  • 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:N/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 Details

  • GitHub Release v3.6.5

  • GitHub Security Advisory GHSA-hjh7-r5w8-5872
  • 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 Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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