/

CVE-2026-74906

Severity:

HIGH RISK

(7.5)

Incorrect Authorization (CWE-863) in SiYuan Readers

CVE-2026-74906

Deferred

Vulnerability type

Category:

Incorrect Authorization

CWE:

CWE-863

Impact:

Unauthorized Information Disclosure

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

SiYuan contains an authorization flaw in publish-mode reader endpoints that apply the visibility list instead of the disabled list when filtering content. Anonymous visitors may discover and read documents or related data that publishers explicitly marked as forbidden from publication.

Affected context

The issue occurs in SiYuan publish-mode, reader-facing endpoints that expose search results, backlinks, asset content, saved criteria, recent documents, graph data, or tags. Deployments may be at risk when anonymous users can reach these endpoints and the application evaluates the document visibility list rather than the list of content disabled for publication.

Exploit preconditions

  • Attack surface: Public publish-mode reader endpoints
  • Required access: Anonymous network access to the affected endpoints
  • Trigger point: A request for searchable, linked, graphical, tagged, recent, saved-criteria, or asset-related content
  • Why exploitation is possible: Authorization filtering uses an allow-oriented visibility list instead of correctly excluding content explicitly disabled for publication

Why this happens

The underlying bug is an authorization decision error. The affected endpoints use the wrong access-control data set when determining whether content should be exposed to unauthenticated readers, causing forbidden content to pass the publication filter. This maps to CWE-863: Incorrect Authorization, where access decisions do not correctly enforce the intended permissions or restrictions.

Potential impact

  • Anonymous users may read documents that were intended to remain unpublished
  • Sensitive asset content or metadata could be disclosed
  • Search, backlink, graph, tag, or recent-document results could reveal confidential relationships
  • Organizations could experience privacy, confidentiality, or information-governance violations

General mitigation guidance

Mitigation generally focuses on making publication authorization explicit, deny-by-default, and consistent across every reader-facing endpoint.

Common defensive patterns include:

  • Apply the disabled-for-publication state as an exclusion rule before returning content or metadata
  • Centralize authorization decisions so search, graph, asset, backlink, tag, and history features use the same policy
  • Treat anonymous requests as untrusted and require explicit authorization for every returned object
  • Filter both primary records and related metadata, including links, names, identifiers, and asset references
  • Add regression tests for explicitly forbidden documents and their indirect exposure paths
  • Limit published content to a separately controlled data set where practical

How teams detect issues like this

Organizations can look for this issue through:

  • Static analysis and review of endpoint code that references visibility, publication, or disabled-content fields
  • Code review checks for inconsistent authorization logic across search, graph, asset, backlink, tag, and recent-content handlers
  • Integration tests confirming that anonymous requests cannot retrieve forbidden documents or derived metadata
  • Policy enforcement requiring centralized authorization helpers for publish-mode responses
  • Access-log analysis for anonymous enumeration of reader endpoints and unexpected references to unpublished content
  • Neutral automated security review tools that compare endpoint behavior against publication-control policies

Sources

SourceLink
github.comgithub.com/siyuan-note/siyuan/security/advisories/GHSA-48p5-pffc-5r9p
vulncheck.comvulncheck.com/advisories/siyuan-before-incorrect-authorization-via-publish-access

Frequently asked

questions

Yes. Where publish-mode reader endpoints are publicly reachable, an anonymous visitor may remotely request affected resources without an authenticated session.

No authenticated account may be required. The key condition is access to the exposed publish-mode endpoints and the presence of content marked as forbidden from publication.

Enforce a centralized, deny-by-default publication policy that consistently excludes disabled content across direct and indirect response paths.

Maintain one authoritative authorization decision, test every endpoint with anonymous and authenticated roles, and verify that related metadata cannot bypass document-level publication restrictions.

Find out what's already
exploitable in your codebase.