ZeroHour

CVE-2026-68584

niche

Authentication Bypass in SiYuan Publish Mode Exposes Password-Protected Docs

CVSS 4.0
9.2 critical
EPSS
<1%p24
Published
()
Modified
AI analysis

SiYuan's publish mode supports a 'protected' access level in which a document is publicly listed but requires a password to read, yet the password check (FilterContentByPublishAccess) is only enforced on the primary getDoc content path. Several sibling endpoints — getHeadingChildrenDOM, the getHeadingDeleteTransaction/getHeadingLevelTransaction/getHeadingInsertTransaction endpoints, and getBacklinkDoc/getBackmentionDoc — return full rendered block DOM with no password check at all. Because anonymous readers can also obtain a protected document's internal block and heading IDs from reader-reachable endpoints (e.g., searchEmbedBlock, which strips protected content but retains block IDs), chaining an ID leak with any of these unauthenticated content endpoints yields the complete body of a password-protected document without the password. Any SiYuan instance running publish mode with password-protected documents exposed to anonymous readers is affected; the chain was reproduced end-to-end against a live instance. No public PoC or in-the-wild exploitation is currently known, and EPSS estimates roughly a 0.3% chance of exploitation in the next 30 days.

What to do: Inventory internet-exposed SiYuan publish endpoints (default port 6808) for documents configured as 'protected' and treat their contents as readable without the password until patched. Since no fixed version is stated in the available data, mitigate by unpublishing password-protected documents or fronting the publish service with reverse-proxy authentication/network access restrictions, and monitor the SiYuan project for a release that applies the publish-password filter to the heading and backlink endpoints.

Affected
B3log / SiYuan project (open-source Go application) SiYuan (publish mode)
Estimated exposure
nicheLikely on the order of hundreds to low thousands of exposed publish-mode instances; unknown precisely (opt-in, self-hosted feature) — SiYuan is a niche open-source note-taking application and publish mode is an opt-in feature typically self-hosted (default port 6808), with only instances anonymously serving password-protected documents vulnerable; the dataset contains no…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

SiYuan versions before v3.7.3 contain an authentication bypass vulnerability in publish mode where content-returning endpoints getHeadingChildrenDOM, getHeading*Transaction, and getBacklinkDoc perform no password check despite protecting the primary getDoc endpoint. Anonymous attackers can retrieve full content of password-protected documents by obtaining internal block IDs from reader-accessible endpoints and calling unprotected content endpoints to bypass the password gate.

Ecosystems
go
Weakness
CWE-288
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
GHSA
GHSA-7j72-f6wg-cxw6 (high)

In the news

No ingested article mentions this CVE yet.