Kernel: Duplicate Advisory: Missing publish-access filter on getFileAnnotation discloses private PDF annotations of forbidden/protected documents (publish mode)
Description
SiYuan versions up to and including v3.7.2 have an information disclosure vulnerability in the /api/asset/getFileAnnotation endpoint. This endpoint returns PDF annotation content without enforcing publish-access checks, allowing unauthorized access to private annotations of forbidden, password-protected, or unpublished documents. The vulnerability does not expose annotations in encrypted notebooks. It was fixed in version v3.7.4.
CVSS v3.1
Score 5.8medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
SiYuan kernel versions up to and including v3.7.2 contain an information disclosure vulnerability (CWE-862) in the /api/asset/getFileAnnotation endpoint. This endpoint returns .sya PDF annotation file content without verifying publish-access permissions, relying only on CheckAuth. Unlike the /assets/* route, which enforces publish access and password protections, this endpoint allows an anonymous user (if publish authentication is disabled) or any publish RoleReader who knows an asset path to read private PDF annotations such as highlights and notes of documents that are publish-forbidden, password-protected, or unpublished. The issue is limited to non-encrypted notebooks, as encrypted-box annotations are not exposed. The vulnerability was fixed in version v3.7.4.
Potential Impact
An attacker with knowledge of an asset path can access private PDF annotations of protected documents without proper authorization, potentially exposing sensitive information contained in highlights and notes. This does not affect encrypted notebooks, limiting the scope of exposure. The vulnerability does not allow modification or deletion of data, only information disclosure.
Mitigation Recommendations
Upgrade SiYuan to version v3.7.4 or later, where the vulnerability is fixed by enforcing proper publish-access checks on the /api/asset/getFileAnnotation endpoint. Until then, ensure publish authentication is enabled to reduce exposure risk. Patch status is confirmed fixed in v3.7.4.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-mhcc-g592-267j
- Osv Schema Version
- 1.4.0
- Ecosystems
- ["Go"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a9ad505acd9273b49b67c19
Added to database: 09/04/2026, 14:26:13 UTC
Last enriched: 09/07/2026, 15:53:04 UTC
Last updated: 10/04/2026, 09:39:12 UTC
Views: 26
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.