CVE-2026-87815
moderatePath Traversal Arbitrary File Deletion in SiYuan Before v3.8.2
SiYuan, an open-source knowledge-management/note-taking server, contains a path traversal flaw (CWE-73) in the /api/riff/removeRiffDeck endpoint, where the deckID parameter is not validated. An authenticated administrator can send path traversal sequences in deckID, causing the endpoint to delete .deck and .cards files at arbitrary locations outside the workspace directory, potentially destroying flashcard data and other files on the host. Because the request must come from an administrator account, exploitation requires compromised or malicious admin credentials; the impact is loss of data integrity and availability (no confidentiality impact). All SiYuan deployments running versions before v3.8.2 are affected. As of this writing there is no known in-the-wild exploitation, no public proof-of-concept, and the issue is not in the CISA KEV catalog.
What to do: Upgrade SiYuan to v3.8.2 or later, which validates the deckID parameter in /api/riff/removeRiffDeck. Until then, restrict administrator access to the instance (strong authentication, limited exposure of the API over the network) and maintain backups of workspace and flashcard (.deck/.cards) data; administrators should verify that flashcard data has not been unexpectedly deleted and restore from backups if needed.
| SiYuan | All versions prior to v3.8.2 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
SiYuan versions before v3.8.2 contain a path traversal vulnerability in the /api/riff/removeRiffDeck endpoint that fails to validate the deckID parameter. An authenticated administrator can supply path traversal sequences to delete arbitrary .deck and .cards files outside the workspace directory.
- Weakness
- CWE-73
- Vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:H/SC:N/SI:H/SA:H/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
In the news0 stories
No ingested article mentions this CVE yet.