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-40318

CVE-2026-40318: SiYuan Path Traversal Vulnerability

CVE-2026-40318 is a path traversal flaw in SiYuan that allows attackers to delete arbitrary JSON files on the server, including critical configuration files. This article covers technical details, affected versions, and mitigation.

Published: April 16, 2026

CVE-2026-40318 Overview

CVE-2026-40318 is a Path Traversal vulnerability affecting SiYuan, an open-source personal knowledge management system. In versions 3.6.3 and prior, the /api/av/removeUnusedAttributeView endpoint constructs a filesystem path using the user-controlled id parameter without validation or path boundary enforcement. An attacker can inject path traversal sequences such as ../ into the id value to escape the intended directory and delete arbitrary .json files on the server, including global configuration files and workspace metadata.

Critical Impact

This vulnerability allows authenticated attackers to delete arbitrary JSON files on the server, potentially leading to data loss, denial of service, or system misconfiguration by removing critical application configuration files.

Affected Products

  • SiYuan versions 3.6.3 and prior
  • SiYuan personal knowledge management system deployments with network-accessible API endpoints

Discovery Timeline

  • 2026-04-16 - CVE-2026-40318 published to NVD
  • 2026-04-16 - Last updated in NVD database

Technical Details for CVE-2026-40318

Vulnerability Analysis

This vulnerability is classified under CWE-24 (Path Traversal: '../filedir'), a weakness where application logic accepts user input and uses it to construct file paths without proper sanitization. In this case, the SiYuan application's /api/av/removeUnusedAttributeView endpoint takes an id parameter from user requests and directly incorporates it into filesystem operations intended to remove attribute view files.

The absence of path boundary enforcement means that attackers with authenticated access can manipulate the id parameter to include directory traversal sequences. By crafting malicious requests containing ../ patterns, an attacker can navigate outside the intended working directory and target any .json file accessible to the application's process user. This could include application configuration files, workspace metadata, user settings, or other critical JSON-formatted data structures.

The network-based attack vector combined with the low complexity of exploitation makes this vulnerability particularly concerning for self-hosted SiYuan instances exposed to untrusted networks.

Root Cause

The root cause of CVE-2026-40318 lies in insufficient input validation within the /api/av/removeUnusedAttributeView endpoint. The application fails to sanitize or validate the id parameter before using it to construct filesystem paths. Specifically, the code does not:

  1. Restrict the id parameter to expected character sets (alphanumeric identifiers)
  2. Strip or reject path traversal sequences (../, ..\\)
  3. Canonicalize paths and verify they remain within expected directory boundaries
  4. Implement allowlist validation against known valid attribute view identifiers

Attack Vector

The attack is executed over the network against the SiYuan API. An authenticated attacker sends a crafted HTTP request to the vulnerable endpoint with a malicious id parameter containing path traversal sequences. The attack flow is as follows:

  1. Attacker authenticates to the SiYuan application (requires low-level privileges)
  2. Attacker crafts a request to /api/av/removeUnusedAttributeView with an id value such as ../../../config/settings or similar traversal patterns
  3. The application constructs a file path by concatenating the base directory with the malicious id and appending .json
  4. The resulting path points to an arbitrary location outside the intended attribute view directory
  5. The application deletes the targeted file, potentially causing data loss or service disruption

For detailed technical information, see the GitHub Security Advisory.

Detection Methods for CVE-2026-40318

Indicators of Compromise

  • HTTP requests to /api/av/removeUnusedAttributeView containing ../ or ..\\ sequences in the id parameter
  • Unexpected deletion of .json files outside the attribute view storage directory
  • Application configuration files or workspace metadata files disappearing without user action
  • Error logs indicating file not found errors for critical configuration files after API activity

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block path traversal patterns (../, ..%2f, ..\\) in API request parameters
  • Monitor API access logs for requests to /api/av/removeUnusedAttributeView with unusually long or suspicious id parameter values
  • Deploy file integrity monitoring (FIM) on critical SiYuan configuration directories to detect unauthorized deletions
  • Configure alerting on HTTP 200 responses to the vulnerable endpoint combined with path traversal pattern detection

Monitoring Recommendations

  • Enable detailed access logging for all SiYuan API endpoints with full request parameter capture
  • Set up real-time alerts for any path traversal patterns detected in incoming requests
  • Monitor filesystem events for deletion operations on .json files outside expected attribute view directories
  • Review authentication logs for unusual access patterns preceding file deletion events

How to Mitigate CVE-2026-40318

Immediate Actions Required

  • Upgrade SiYuan to version 3.6.4 or later immediately to remediate this vulnerability
  • If immediate patching is not possible, restrict network access to the SiYuan instance to trusted users and networks only
  • Review recent access logs for evidence of exploitation attempts targeting the /api/av/removeUnusedAttributeView endpoint
  • Verify integrity of critical configuration and workspace files; restore from backup if tampering is detected
  • Consider temporarily disabling or blocking access to the vulnerable endpoint via reverse proxy rules until patching is complete

Patch Information

The vulnerability has been fixed in SiYuan version 3.6.4. Organizations should upgrade to this version or later to address the security issue. The patch implements proper input validation and path boundary enforcement for the id parameter in the affected endpoint.

For patch details and release notes, see the GitHub Release v3.6.4.

Workarounds

  • Deploy a reverse proxy or WAF in front of SiYuan to filter requests containing path traversal sequences
  • Restrict access to SiYuan to localhost only and access via SSH tunnel or VPN for remote usage
  • Implement network segmentation to limit exposure of the SiYuan instance to untrusted networks
  • Create backup routines for critical configuration files to enable rapid recovery if exploitation occurs
bash
# Example nginx configuration to block path traversal attempts
location /api/av/removeUnusedAttributeView {
    # Block requests with path traversal patterns
    if ($request_uri ~* "(\.\./|\.\.\\)") {
        return 403;
    }
    proxy_pass http://localhost:6806;
}

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.5

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-24
  • Technical References
  • GitHub Release v3.6.4

  • GitHub Security Advisory GHSA-vw86-c94w-v3x4
  • Related CVEs
  • CVE-2026-33670: SiYuan Path Traversal Vulnerability

  • CVE-2026-30869: SiYuan Path Traversal Vulnerability

  • CVE-2026-25992: SiYuan Path Traversal Vulnerability

  • CVE-2026-23851: 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