A public publish host can expose an indexed asset referenced only by a publish-disabled attribute-view row. An anonymous request to the production publish listener obtains the path through /api/asset/getDocAssets; the production PublishServiceTransport forwards a Reader JWT to /api/ /getAssetContentByPath, which returns the asset's full indexed text. A listener probe reproduced the leak without a caller-supplied X-Auth-Token and confirmed that an unlinked indexed asset returns null. The tested revision is bfe3610 .
The production publish listener created by proxy.InitPublishService accepts the anonymous HTTP request and routes it through PublishServiceTransport. The transport forwards the request to the production API router with a valid Reader JWT. In the probe harness, the API backend uses the target's JWT parsing and role-context operations before calling the unchanged api.ServeAPI routes; the harness does not start the rest of the desktop/server process or invoke the server package's unexported jwtMiddleware wrapper.
The public getDocAssets route obtains its list through DocAssets. When collecting attribute-view assets, getAttributeViewAssetsLinkDests visits persisted values and extracts each MAsset path through getAttributeViewValueAssetsLinkDests. The persisted value retains the protected source document's block ID, but this traversal does not apply that row's publish-access rule. An attribute view in an accessible host document can therefore contribute an asset path from a disabled row to the Reader allowlist.
The getAssetContentByPath handler calls FilterAssetContentByPublishAccess for read-only roles and then model.GetAssetContentByPath. Because the allowlist contains the leaked path, the model returns the indexed file text. The authorization decision follows the accessible AV container rather than the publish status of the row bound to the asset. This differs from Reader export behavior, which filters AV values belonging to hidden rows.
The demonstrated prerequisites are a publicly accessible host document containing an attribute view, an MAsset value bound to a row whose source document has publishing disabled, and an indexed text asset referenced by that value. The proof sent no caller X-Auth-Token; the production publish transport supplied the Reader identity used by the API backend. No password or workspace authorization for the disabled source document was used.
The successful attack sequence sends anonymous requests, without an X-Auth-Token, to the production publish listener:
POST /api/asset/getDocAssets with {"id":""} returns assets/private-row.txt, referenced only by the disabled AV row.
POST /api/ /getAssetContentByPath with {"path":"assets/private-row.txt"} returns data.assetContent.content containing PRIVATE_ASSET_CANARY_20261102.
Repeating the asset-content request for the indexed but unlinked path assets/unreferenced.txt returns data.assetContent: null.
The production PublishServiceTransport forwarded a valid Reader JWT to both API routes. The exact clean-checkout reproduction and harness source appear together in the Appendix.
The Appendix contains one clean-checkout command sequence. It starts at the repository root, enters the kernel module once, writes the displayed Go source, and runs it. With the default all mode, a successful run prints the leak result for both API routes and the null result for the unlinked control.
The proof shows that an anonymous request to the public publish listener is forwarded as a Reader and can retrieve private text extracted from assets referenced only by publish-disabled attribute-view rows. This crosses the document’s publish-access boundary and can disclose confidential document attachments or other indexed files. The demonstrated effect is confidentiality loss; no integrity or availability impact was observed.
The metadata classifies this as CWE-863, Incorrect Authorization, with CVSS v3.1 vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (7.5 High). Network access is sufficient, the Reader token is issued for the anonymous publish session, and no victim interaction is needed. Confidentiality is High because the route returns the full indexed text of each affected asset; integrity and availability remain None. The test proves this behavior at the pinned revision and does not establish a broader release range.
Build the publish asset allowlist from MAsset values whose bound source rows pass the same publish-access check used when rendering or exporting the attribute view. Do not let a persisted value’s presence in a public AV authorize its asset when the value’s bound row is disabled or password-gated.
Add a regression test with a public host document and an AV value bound to a publish-disabled source row. With a valid Reader JWT, assert that the Reader cannot retrieve the indexed asset text. Include a second indexed asset with no accessible reference and assert that its content remains unavailable. A separate assertion that public asset listings do not expose paths from disabled rows would also prevent leaking the protected path.
Affected Package/Versions
Package: github.com/siyuan-note/siyuan/kernel (Go).
Tested revision: bfe36100477b7bbd66db1a8b8cff5547b2ccdb59 — vulnerable; this is also the tested current head.
No other release or revision was tested, so no wider affected range is asserted.
No patched version was tested.
PR #16041 (commit 3facc37 ) added Reader filtering for asset-content lookups by building a document-level allowlist from assets returned by DocAssets for publish-accessible documents. The disabled-row path demonstrated here reaches that allowlist through a persisted asset value inside an accessible host attribute view; the path is then allowed and the indexed file text is returned. Earlier Attribute View reports concern hidden row or cell content returned by Attribute View routes, while this issue reaches the separate indexed asset-text sink in getAssetContentByPath .
GHSA-48p5-pffc-5r9p covers Reader asset-content endpoints, including getAssetContentByPath . Its fix corrected the direct document check in FilterAssetContentByPublishAccess : the check had considered Visible without honoring Disable , and commit 590e4ec added the disabled-document check. The pinned revision includes that correction. The behavior reported here uses a different path: DocAssets traverses an asset value in an accessible host view and contributes a path bound to a disabled source row, so the later asset-content check sees that path in the allowlist. The claim here is limited to this disabled-row path contributed through an accessible host view; it does not claim that the direct Disable check is missing.
GHSA-778g-gq49-fxxj covers protected Attribute View row and cell values returned through export and preview. Its repair filters protected row values from that serialized export and preview output. This report's sink is the indexed asset-content API, reached through a path exposed by DocAssets ; it returns extracted file text rather than serialized Attribute View row or cell values.
Earlier local reviews covered six other topics. The SQL-template review required an Editor-configured template and concerned rendered Attribute View query results. The getDoc review concerned keyword data returned for password-gated documents. The WebSocket review concerned administrator cloud-user token handling and did not establish reachability without an authenticated administrator session. The widget review concerned reading package files through /api/file/getFile , subject to package-path and publication checks for an installed widget referenced by an accessible document. The CAPTCHA review concerned replaying a stale login challenge in the loginAuth flow. The LAN-sync review concerned metadata exchanged with a device over LAN sync, which requires authenticated device credentials. These topics involve Attribute View rendering, document response fields, an authenticated WebSocket channel, package-file serving, login challenge state, or sync metadata. The distinction claimed here is specifically the disabled-row asset path added by an accessible host's DocAssets scan and then used to retrieve indexed text through getAssetContentByPath .
Public reports GHSA-9cqf-hhrq-7v45 and GHSA-vc7j-5f5p-3x75 describe related publish-boundary issues involving Attribute Views. The former concerns matching Attribute View row content returned by getAttributeViewSearchTarget ; the latter concerns hidden rows retaining Attribute View cell values. This report concerns the distinct indexed-file-text sink in getAssetContentByPath , reached using a path contributed by a disabled row.
getAssetContentByPath route handler at the tested revision
getDocAssets handler at the tested revision
FilterAssetContentByPublishAccess
DocAssets and the persisted AV value traversal
getAttributeViewAssetsLinkDests , VisitPersistedValues , and getAttributeViewValueAssetsLinkDests
Indexed asset text lookup
Reader export test for hidden AV rows
Commit 590e4ec correcting the disabled-document check
FIRST CVSS v3.1 User Guide
Appendix: Exact clean-checkout reproduction
Run this from a shell with Git, Go, and the target's CGO build requirements installed. The listener probe defaults to all, so it performs the positive request sequence and the unlinked-asset control in one run.
A successful run prints: “anonymous request without caller X-Auth-Token reached /api/asset/getDocAssets and /api/ /getAssetContentByPath through InitPublishService; PublishServiceTransport forwarded a valid Reader JWT; disabled-row path returned full indexed text "PRIVATE_ASSET_CANARY_20261102"” and “anonymous request without caller X-Auth-Token reached /api/ /getAssetContentByPath through InitPublishService; PublishServiceTransport forwarded a valid Reader JWT; unlinked control returned null”.
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
