Skip to content
DayZeroHub
Critical CVSS 9.3CVE-2026-130683

SiYuan before 3.8.10: Path Deny-List Bypass in /api/file/copyFile

siyuan-note siyuan

Summary

SiYuan versions before 3.8.10 use an incomplete deny-list in IsSensitivePath, allowing authenticated administrators to copy files to sensitive paths outside the workspace. The CVSS 4.0 score is 9.3 (critical), as assigned by CNA:VulnCheck.

What happened

SiYuan's IsSensitivePath function uses an incomplete deny-list that omits shell-initialization files such as .zshenv and .bash_profile, as well as the ~/.local directory. An authenticated administrator can call /api/file/copyFile with an absolute destination outside the workspace to write content to those locations. That content executes with the user's privileges on the next shell or login. The weakness is classified as CWE-22 (path traversal).

Why it matters

Writing files outside the workspace can lead to code execution with the privileges of the user running SiYuan. Exploitation requires authentication as an administrator, and the CVSS vector indicates local access. The CVSS 4.0 score is 9.3 with vector CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H, and severity is critical. CISA's KEV catalog does not list this vulnerability as exploited, and the source provides no indication of active exploitation.

Affected products and versions

siyuan (siyuan-note): versions before 3.8.10 (< 3.8.10). Version 3.8.10 is listed as unaffected.

ProductVersionsFixed in
siyuan-note siyuan< 3.8.10—
siyuan-note siyuan3.8.103.8.10

Action recommended by the source

The source lists version 3.8.10 as unaffected, so the vendor addresses the issue in that version. More details are in the vendor advisory: https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4xfj-946m-258h. The source does not state other mitigations.

Fixed in: 3.8.10

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-22

Relevant change history

  1. Published

    Advisory published.

Summary written with AI assistance from the source data. See the sources and references for complete information. View sources