CVE-2026-33670
Directory Traversal in SiYuan /api/file/readDir Pre
Publication date: 2026-03-26
Last updated on: 2026-03-30
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| b3log | siyuan | to 3.6.2 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-22 | The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
The vulnerability exists in SiYuan, a personal knowledge management system, specifically in versions prior to 3.6.2. The issue is with the /api/file/readDir interface, which was used to traverse and retrieve the file names of all documents under a notebook. This could allow unauthorized access to file information.
How can this vulnerability impact me? :
This vulnerability has a high severity with a CVSS base score of 9.8, indicating it can be exploited remotely without any privileges or user interaction. It can lead to complete confidentiality, integrity, and availability compromise, meaning an attacker could access sensitive file names, modify data, or disrupt the service.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, you should upgrade SiYuan to version 3.6.2 or later, as this version patches the issue related to the /api/file/readDir interface.