CVE-2026-45371 SiYuan: SiYuan publish-mode Reader can mutate Conf and SQL index via 8 ungated APIs

High 7.2 Published Updated

Attackers with reader or editor roles can modify configuration and SQL index via ungated APIs in SiYuan publish mode.

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

CVE-2026-45371 is a high-severity missing authorization vulnerability in siyuan-note siyuan, published on 14 May 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.0, SiYuan publish-mode Reader can mutate Conf and SQL index via 8 ungated APIs. POST /api/graph/getGraph, POST /api/graph/getLocalGraph, POST /api/sync/setSyncInterval, POST /api/storage/updateRecentDocViewTime, POST /api/storage/updateRecentDocCloseTime, POST /api/storage/updateRecentDocOpenTime, POST /api/storage/batchUpdateRecentDocCloseTime, and POST /api/search/updateEmbedBlock are registered with model.CheckAuth only, omitting both model.CheckAdminRole and model.CheckReadonly. Each of them writes server-side state, including atomic rewrites of <workspace>/conf/conf.json via model.Conf.Save(). Any caller whose JWT passes CheckAuth, including a publish-service RoleReader (the role assigned to anonymous publish visitors) and a RoleEditor against a workspace where Editor.ReadOnly = true, can hit them This vulnerability is fixed in 3.7.0.

Weakness: CWE-862, CWE-285

Which versions are affected by CVE-2026-45371?

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-20260512140701-d7b77d945e0d
github.com/siyuan-note/siyuan/kernel GoAll versions0.0.0-20260512140701-d7b77d945e0d
github.com/siyuan-note/siyuan/kernel GoAll versions0.0.0-20260512140701-d7b77d945e0d

How do I fix CVE-2026-45371?

Upgrade github.com/siyuan-note/siyuan/kernel to 0.0.0-20260512140701-d7b77d945e0d or later.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2026-45371 being exploited?

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

Sources

Also known as GHSA-gmmv-4cc5-wr9r, GO-2026-5402.

Is CVE-2026-45371 in your software?

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

Check your SBOMs for free