CVE-2026-59832 Siyuan: Authenticated path traversal in /snippets/ static handler (serveSnippets) leaks conf/conf.json secrets and siyuan.db

High 7.7 Published Updated

An authenticated attacker can exploit a path traversal flaw in the snippets handler to read sensitive configuration files and the local database.

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-59832?

CVE-2026-59832 is a high-severity path traversal vulnerability in siyuan-note siyuan, published on 9 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

SiYuan is an open-source personal knowledge management system. Prior to 3.7.1, the /snippets/*filepath route handler serveSnippets in kernel/server/serve.go joins a single-decoded request path with the snippets directory without subpath containment or sensitive-path checks, allowing an authenticated request such as /snippets/%2e%2e/%2e%2e/conf/conf.json to read workspace secrets and the document database. This issue is fixed in versions 3.7.1.

Weakness: CWE-23, CWE-22

Which versions are affected by CVE-2026-59832?

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-20260704035520-68cc0f537dfa
github.com/siyuan-note/siyuan/kernel GoAll versions0.0.0-20260704035520-68cc0f537dfa
github.com/siyuan-note/siyuan/kernel GoAll versions0.0.0-20260704035520-68cc0f537dfa

How do I fix CVE-2026-59832?

Upgrade github.com/siyuan-note/siyuan/kernel to 0.0.0-20260704035520-68cc0f537dfa or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-59832 being exploited?

There is no known exploitation of CVE-2026-59832 in the wild and no public exploit code.

Sources

Also known as GHSA-275h-v5h9-vr82, GO-2026-6350.

Is CVE-2026-59832 in your software?

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

Check your SBOMs for free