CVE-2026-85175: Files or Directories Accessible to External Parties in siyuan-note siyuan
Description
SiYuan versions <= 3.8.1 (fixed in v3.8.2) contain an incomplete blocklist in the IsForbiddenAbsPath() function (kernel/util/path_guard.go), which only blocks conf/conf.json by exact match and does not restrict the TLS private key (conf/key.pem) or CA private key (conf/ca.key) stored in the same conf/ directory. Because the getFile handler skips the blocklist for RoleAdministrator and all authenticated users receive RoleAdministrator in v3.8.1, any user (or any client on a default no-auth-code instance) can retrieve these private keys via POST /api/file/getFile. On deployments with TLS enabled, this allows decryption of captured HTTPS traffic (key.pem) and forging of certificates trusted by clients that imported SiYuan's CA (ca.key).
CVSS v4.0
Score 8.7high
Affected software
siyuan-note
siyuan
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
SiYuan versions <= 3.8.1 contain an incomplete blocklist in the IsForbiddenAbsPath() function (kernel/util/path_guard.go) that only blocks access to conf/conf.json by exact match but does not restrict access to TLS private key files (conf/key.pem) or CA private key files (conf/ca.key) in the same directory. Since the getFile handler bypasses the blocklist for RoleAdministrator users and all authenticated users receive this role in v3.8.1, any authenticated user or client on a default no-auth-code instance can retrieve these private keys via the POST /api/file/getFile API. This exposure allows decryption of captured HTTPS traffic and forging of certificates trusted by clients that imported SiYuan's CA. The issue is resolved in version 3.8.2.
Potential Impact
Exposure of TLS private keys (key.pem) and CA private keys (ca.key) allows attackers to decrypt HTTPS traffic and forge trusted certificates, compromising confidentiality and trust of communications on affected deployments. Any authenticated user or client on a default no-auth-code instance can exploit this vulnerability to obtain these keys.
Mitigation Recommendations
A fix is available in SiYuan version 3.8.2. Users should upgrade to version 3.8.2 or later to remediate this vulnerability. Until upgrading, restrict access to the API endpoint POST /api/file/getFile and ensure proper authentication and authorization controls are in place to prevent unauthorized retrieval of private keys.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-03T11:08:17.526Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a995c0aacd9273b49dbb6e4
Added to database: 09/03/2026, 11:37:46 UTC
Last enriched: 09/07/2026, 13:18:39 UTC
Last updated: 10/18/2026, 18:48:24 UTC
Views: 84
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.