⚠️

Disclaimer & Liability

The content provided on this website is for educational, research, and security awareness purposes only. Any unauthorized, illegal, or abusive use of the information, tools, and techniques discussed is solely the responsibility of the user. The author and publisher assume no liability for any damages, injuries, or consequences resulting from the misuse of this content.

CVE-2026-145056: SiYuan Reader Information Disclosure via Block API | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-145056: SiYuan Reader Information Disclosure via Block API

Executive summary

CVE-2026-145056 is an information disclosure vulnerability in SiYuan before 3.8.11. The /api/block/getBlockKramdowns endpoint returns distinguishable responses for blocks that exist but are not publish-authorized to the caller and blocks that do not exist. An authenticated Reader can exploit this difference by submitting block IDs and interpreting the responses.

The flaw exposes metadata rather than private note content: it can reveal the existence of private blocks and their publish-authorization state. Because valid Reader credentials are required, the reported CVSS score is 4.3, and the available context contains no evidence of exploitation or CISA KEV inclusion, the practical impact is assessed as low.

Detailed analysis

Affected systems

The advisory applies to SiYuan before 3.8.11. Version 3.8.11 is identified as the remediation boundary, although the supplied context does not independently confirm vendor patch availability.

The affected surface is the network-accessible /api/block/getBlockKramdowns API endpoint when it is accessible to a user with the Reader role.

How the information leak works

The endpoint exposes three observable states:

  1. A publish-authorized block produces a successful response containing its Kramdown content.

  1. An existing block for which publishing is denied produces a successful response with an empty value.

  1. A nonexistent or otherwise inaccessible block produces a failure response.

The second and third states should be indistinguishable to an unauthorized caller. Because they are not, a Reader can distinguish an existing private block from a nonexistent block.

A likely enumeration sequence is:

  1. Authenticate with a Reader account.

  1. Submit candidate block IDs to /api/block/getBlockKramdowns.

  1. Classify each response as content-bearing, successful with an empty value, or a failure.

  1. Treat the successful empty-value response as confirmation that a block exists but is publish-denied.

  1. Aggregate the results to map private blocks and their authorization states.

Candidate IDs may be easier to obtain when identifiers are predictable or when some block IDs are exposed through shared or public content. The supplied context does not specify the format or predictability of SiYuan block IDs, so the feasibility of broad enumeration varies by deployment.

Security impact

The primary impact is metadata disclosure. The attacker does not directly obtain the contents of private notes through this behavior. Instead, the attacker learns:

  • Whether a queried private block exists.

  • Whether the block is denied for publishing to the authenticated Reader.

This distinction can undermine access-control expectations and may help an attacker refine subsequent collection attempts. The supplied context does not establish that vulnerable endpoints disclose note titles, document structure, or full block content.

Exploitability and threat activity

The endpoint is remotely reachable and exploitation requires only an authenticated Reader account. No memory corruption, race condition, or exploit-development complexity is involved; the issue can be detected through ordinary response comparison.

However, practical impact is constrained by several factors:

  • Authentication is mandatory; anonymous exploitation is not established.

  • Only block existence and publish-authorization state are disclosed, not the protected content itself.

  • No evidence of exploitation is recorded in the supplied context.

  • The vulnerability is not listed on the CISA KEV catalog according to the provided assessment.

These factors support a low real-world severity assessment despite the medium CVSS classification in the advisory data.

Mitigation

The cited fixed-version boundary is SiYuan 3.8.11. Organizations operating affected instances should verify their installed versions and plan an upgrade to 3.8.11 or later.

Where an immediate upgrade is not possible, compensating controls include:

  • Restricting /api/block/getBlockKramdowns through a reverse proxy or web application firewall where operationally feasible.

  • Limiting Reader account creation and reviewing whether Reader accounts are necessary for each deployment.

  • Protecting the SiYuan HTTP service with an authenticated access layer such as a VPN, reverse proxy with mTLS, or single-sign-on front end.

  • Reviewing requests to /api/block/getBlockKramdowns for Reader accounts that submit unusually high numbers of distinct block IDs.

  • Preserving request and response logs that allow operators to distinguish successful empty-value responses from failed lookups.

The supplied context does not confirm patch availability independently, so operators should validate the behavior after updating rather than relying solely on the version number.

Expert insight

This vulnerability illustrates how authorization models can fail even when protected content remains intact. Security often depends not only on denying access to data but also on making “does not exist,” “not visible,” and “not permitted” produce equivalent external behavior. Differential responses create an oracle that can disclose protected metadata.

The issue is especially relevant to collaborative knowledge systems, where low-privilege users may have legitimate access to shared blocks and could probe identifiers associated with private material. Reviewing the endpoint for response consistency is therefore more important than merely protecting the returned Kramdown content.

advisory medium CVE-2026-145056
·
← Back to Writeups