/

CVE-2026-134245

Severity:

HIGH RISK

(7.5)

Authorization Bypass (CWE-863) in SiYuan Asset Route

CVE-2026-134245

Deferred

Vulnerability type

Category:

Authorization Bypass

CWE:

CWE-863

Impact:

Unauthorized disclosure of protected document assets

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's asset-serving route can return a password-protected document asset when an unauthenticated request uses an asset name that also appears in a visible document. The issue is risky on public-publish instances when Basic Auth is disabled and the route does not correctly enforce authorization for the requested file.

Affected context

The issue occurs in SiYuan's serveAssets route, which serves files under /assets/<name>. On affected deployments, a name collision between an asset referenced by a visible document and one belonging to a password-protected document may cause the route to serve the protected file. The described exposure applies to public-publish instances with Basic Auth disabled.

Exploit preconditions

  • Attack surface: The publicly reachable asset-serving route.
  • Required access: No authentication is required under the described deployment conditions.
  • Trigger point: A GET request to /assets/<name> for a colliding relative asset name.
  • Why exploitation is possible: The route's authorization handling may not correctly distinguish the protected asset from the visible document's asset when their names collide.

Why this happens

The route does not consistently enforce authorization for the specific asset being requested. When asset lookup relies on a colliding name without correctly checking the protected document's access controls, a request associated with visible content can expose a protected file. This is an authorization-enforcement failure, mapping to CWE-863: Incorrect Authorization.

Potential impact

  • Unauthenticated users may be able to read protected document assets.
  • Confidential information contained in exposed files could be disclosed.
  • Organizations may lose control over information they intended to restrict to authorized users.

General mitigation guidance

Defensive patterns focus on enforcing access decisions for every requested asset, rather than relying on visibility or name-based lookup alone.

  • Apply authorization checks to the resolved file and its owning document before serving content.
  • Resolve assets within an explicit document or tenant context, avoiding ambiguous name-based lookups.
  • Use secure-by-default publishing and authentication settings for content that may include protected assets.
  • Limit access to sensitive files and apply least privilege to the processes and accounts serving them.
  • Treat asset names and request paths as untrusted, and validate them against the intended resource scope.

How teams detect issues like this

  • Review asset-serving code for authorization checks performed before or after resource resolution, and confirm checks apply to the final file.
  • Use static analysis or code review rules to flag file-serving routes that rely on names or visibility without verifying resource ownership and access rights.
  • Test policy enforcement for collisions between public and restricted asset names, including unauthenticated requests in publishing configurations.
  • Monitor asset access logs for unauthenticated requests to resources associated with restricted documents.

Sources

SourceLink
github.comgithub.com/siyuan-note/siyuan/commit/76bbb54d0e23cf27b789376826d982a616c79488
github.comgithub.com/siyuan-note/siyuan/security/advisories/GHSA-xxqp-6jxw-qr84
vulncheck.comvulncheck.com/advisories/siyuan-3.8.0-before-3.8.10-incorrect-authorization-via-assets-cross-document-asset-collision

Frequently asked

questions

It concerns asset retrieval through SiYuan's serveAssets route when colliding relative asset names can cause a protected file to be served. The described conditions include a public-publish instance with Basic Auth disabled.

Under those conditions, the described requests are unauthenticated. Exposure depends on the route, publishing configuration, and presence of a relevant asset-name collision.

Enforce authorization against the resolved asset and its owning document before returning file contents, using an unambiguous resource context.

Apply authorization checks consistently to file-serving endpoints, avoid ambiguous name-based resource resolution, and test access policies for public and restricted content.

Find out what's already
exploitable in your codebase.