SiYuan: Sensitive-path denylist bypass (CVE-2026-116171)
SiYuan versions 3.5.4 through 3.8.6 on Windows contain a path denylist bypass vulnerability (CVE-2026-116171) that allows authenticated attackers to exfiltrate sensitive workspace files by prepending a Windows extended-length prefix to path parameters.
CVE search metadata
CVE search record: CVE-2026-116171. Severity: high. CVSS: 7.5. KEV: no. Product: SiYuan (< 3.8.7). Brief: SiYuan: Sensitive-path denylist bypass (CVE-2026-116171). Brief link: https://feed.craftedsignal.io/briefs/2026-10-siyuan-path-bypass/
Triage facts
Revision 1- Applicability
- SiYuan (< 3.8.7)
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 1 public source
- Freshness
- Revision 1Oct 25, 14:32 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A1Likely
SiYuan 3.5.4 through 3.8.6 on Windows contain a sensitive-path denylist bypass vulnerability within the IsSensitivePath function. The application fails to properly handle Windows extended-length path prefixes ('\?'), allowing them to survive 'filepath.Clean' calls and evade security filters. An authenticated attacker can exploit this via the '/api/import/importStdMd' endpoint by prepending this prefix to the 'localPath' parameter, enabling the copying of workspace configuration files - including API tokens and TLS private keys - into asset directories accessible to unauthenticated users.
Impact
Successful exploitation allows for the unauthorized retrieval of sensitive configuration files, including credentials and cryptographic keys, from the SiYuan workspace. This can lead to full compromise of the application instance or unauthorized access to integrated services.
Recommendation
- Upgrade SiYuan to version 3.8.7 or later to resolve the improper path validation.
- Review access logs for the '/api/import/importStdMd' endpoint to identify suspicious path traversal patterns or repeated requests containing '?'.
- Rotate API tokens and TLS private keys that may have been exposed through this vulnerability if an attacker is suspected of having accessed the workspace assets.
Immediate actions
Upgrade SiYuan to version 3.8.7 or later
Threat Hunt
Hunt for API requests to /api/import/importStdMd containing the string \\?\
Data: Web server access logs
Mitigations
Upgrade SiYuan to version 3.8.7
CVE-2026-116171