CVE-2026-116171

SiYuan 3.5.4 before 3.8.7 Sensitive Path Bypass via Windows Extended-Length Prefix

Published Oct 25, 2026 CVSS 4.0 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
SiYuan 3.5.4 before 3.8.7 on Windows contains a sensitive-path denylist bypass in IsSensitivePath because the Windows extended-length prefix (\\?\) survives filepath.Clean and matches no forbidden prefix. Authenticated API callers can prepend the prefix to localPath in /api/import/importStdMd to copy workspace conf files, including the API token and TLS private keys, into assets served to unauthenticated clients.

Analysis

AI-generated

Technical impact

SiYuan 3.5.4 through 3.8.6 on Windows has a path traversal flaw (CWE-22). The denial list of sensitive paths in the IsSensitivePath check can be bypassed when the Windows extended‑length prefix (\\?\) is applied, because it survives fpClean and does not match any forbidden prefix. As a result, an attacker who has API authentication can supply a localPath in the /api/import/importStdMd endpoint that starts with the prefix, causing the server to copy local configuration files—including the API token and TLS private key—into the public assets folder served to unauthenticated clients. This allows those unauthenticated clients to retrieve secrets that were intended to remain private and could lead to further compromise of the environment.

Affected Systems

This vulnerability affects SiYuan note versions 3.5.4 to 3.8.6 running on Windows. The product is identified by the vendor "siyuan-note" and product "siyuan". Users of earlier releases are not affected, and versions 3.8.7 and later are not vulnerable.

Risk and Exploitability

The CVSS score of 5.9 indicates medium impact and low to moderate exploitation risk. EPSS shows a very low exploitation probability (<1%) and the vulnerability is not listed in the CISA KEV catalog. The attack requires an authenticated API caller to provide a crafted path in the /api/import/importStdMd endpoint that starts with the Windows extended‑length prefix, causing the server to copy local configuration files—including the API token and TLS private key—into the public assets folder that is served to unauthenticated clients. This allows those unauthenticated clients to retrieve secrets that were intended to remain private and could lead to further compromise of the environment.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SiYuan to version 3.8.7 or later to remove the path traversal issue.
  • Revoke any API tokens that could have been exposed through this flaw and generate new tokens for legitimate services.
  • Restrict the /api/import/importStdMd endpoint to administrative users only or shield it through network segmentation to prevent unauthenticated access to the exposed assets.

Generated by OpenCVE AI on October 28, 2026 at 20:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 5.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description SiYuan 3.5.4 before 3.8.7 on Windows contains a sensitive-path denylist bypass in IsSensitivePath because the Windows extended-length prefix (\\?\) survives filepath.Clean and matches no forbidden prefix. Authenticated API callers can prepend the prefix to localPath in /api/import/importStdMd to copy workspace conf files, including the API token and TLS private keys, into assets served to unauthenticated clients.
Title SiYuan 3.5.4 before 3.8.7 Sensitive Path Bypass via Windows Extended-Length Prefix
First Time appeared B3log
B3log siyuan
Weaknesses CWE-22
CPEs cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
Vendors & Products B3log
B3log siyuan
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 28, 2026, 6:59 PM
Reserved
Oct 25, 2026, 12:25 PM
Status
Deferred
Published
Oct 25, 2026, 2:16 PM
Modified
Oct 28, 2026, 7:17 PM