Skip to main content
EPSS 0.3%top 76%

CVE-2026-85175: Files or Directories Accessible to External Parties in siyuan-note siyuan

0
High
VulnerabilityCVE-2026-85175cvecve-2026-85175
Published: 09/03/2026 (09/03/2026, 11:22:22 UTC)
Source: CVE Database V5
Vendor/Project: siyuan-note
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

siyuan-note

siyuan

Affected versions
>=0 <3.8.2

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 13:18:39 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses