CVE-2026-85175 SiYuan before v3.8.2 TLS Private Key Disclosure via getFile

High 8.7 Published Updated

Attackers can retrieve TLS private keys via an incomplete path blocklist, enabling traffic decryption and certificate forgery in SiYuan.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-85175?

CVE-2026-85175 is a high-severity vulnerability in siyuan-note siyuan, published on 3 Sep 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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).

Weakness: CWE-552

Which versions are affected by CVE-2026-85175?

3 open source packages ship an affected version, including github.com/siyuan-note/siyuan/kernel.

PackageAffectedFixed in
github.com/siyuan-note/siyuan/kernel GoAll versions0.0.0-20260819144130-256d73aa7f94
github.com/siyuan-note/siyuan/kernel GoAll versions0.0.0-20260819144130-256d73aa7f94
github.com/siyuan-note/siyuan/kernel GoAll versions0.0.0-20260819144130-256d73aa7f94

How do I fix CVE-2026-85175?

Upgrade github.com/siyuan-note/siyuan/kernel to 0.0.0-20260819144130-256d73aa7f94 or later.

Is CVE-2026-85175 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-85175 exists.

Sources

Also known as GHSA-4wwp-f6gw-6qm5, GHSA-gg9w-4vv2-vjcm, GO-2026-6663.

Is CVE-2026-85175 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free