---
id: "GHSA-vg9q-fc8f-43f3"
kind: "vulnerability"
aliases: ["GHSA-vg9q-fc8f-43f3"]
title: "Duplicate Advisory: authFilePublishAccess distinguishes hidden and forbidden documents from public and nonexistent ones, and issues a publish-auth cookie for documents it reports as forbidden"
severity: "medium"
cvss: 5.800000190734863
epss: null
exploited: false
status: "withdrawn"
category: "package"
products: [{"name": "github.com/siyuan-note/siyuan/kernel", "fixed": [], "affected": "< 3.7.4", "ecosystem": "go"}]
ecosystems: ["go"]
tags: ["cwe-203", "go", "package", "self-hosted", "siyuan"]
not_affected_if: ["managed-hosting", "publishing-disabled"]
published_at: "2026-08-14T12:31:28+00:00"
first_seen_at: "2026-10-23T19:11:31+00:00"
updated_at: "2026-10-23T21:48:44+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-vg9q-fc8f-43f3", "first_seen_at": "2026-10-23T19:11:31+00:00"}]
---

# Duplicate Advisory: authFilePublishAccess distinguishes hidden and forbidden documents from public and nonexistent ones, and issues a publish-auth cookie for documents it reports as forbidden

This is a duplicate advisory for SiYuan's kernel, withdrawn in favour of GHSA-4pjg-x8qj-33j5. The unauthenticated /api/filetree/authFilePublishAccess endpoint reveals whether a document ID exists at a hidden or forbidden tier and can issue a publish-auth cookie for forbidden documents.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- go:github.com/siyuan-note/siyuan/kernel affected < 3.7.4 fixed ?

## How to check

Check the SiYuan kernel version; affected is before v3.7.4 per the advisory.
If self-hosting with publishing enabled, confirm the running version with the app's About dialog or the kernel release tag.
For the full picture, see GHSA-4pjg-x8qj-33j5, which this duplicates.

## Fix

Upgrade SiYuan to v3.7.4 or later.
Treat any publish-auth cookies issued before the upgrade as tied to the old behaviour; the referenced fix is in GHSA-4pjg-x8qj-33j5.

## Timeline

- 2026-10-23T19:11:31+00:00 ghsa https://github.com/advisories/GHSA-vg9q-fc8f-43f3

## From the sources

## Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-4pjg-x8qj-33j5. This link is maintained to preserve external references.

## Original Description
SiYuan before v3.7.4 contains an information disclosure vulnerability in the /api/filetree/authFilePublishAccess endpoint, which is registered with CheckAuth only and is reachable anonymously. The endpoint never sets a failure code, so its outcome is signalled entirely by the response message and by the presence of a Set-Cookie header, and these signals differ across access tiers. By submitting requests with an empty password for a candidate document identifier, an anonymous attacker can distinguish whether a document is public/nonexistent, password-protected, or exists at the hidden or forbidden tier, thereby confirming the existence of documents they are not permitted to access. Because hidden and forbidden entries store an empty password, such requests also cause the server to issue a publish-auth cookie for forbidden documents.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
