CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-72792

CVE-2026-72792: Information Disclosure via Tag API Endpoint in SiYuan

Amit Schendel
Amit Schendel
Senior Security Researcher

Sep 5, 2026·5 min read·18 visits

Executive Summary (TL;DR)

Unauthenticated remote attackers can query `/api/tag/getTag` in SiYuan instances running in publish mode to extract tag vocabulary and metadata from password-protected documents.

SiYuan before version v3.7.4 is affected by an information disclosure vulnerability in the `/api/tag/getTag` endpoint. Under publish mode, this endpoint returns tag labels and occurrence counts from password-protected documents to unauthenticated readers, allowing them to enumerate protected vocabulary and internal metadata without providing the document's publish password.

Vulnerability Overview

SiYuan is an open-source, local-first personal knowledge management system that supports fine-grained content publishing. When hosting published notebooks, users can password-protect specific documents to prevent unauthorized read access. This security control is bypassed by an incorrect authorization defect in the tag aggregation API endpoint.

The vulnerability, tracked as CVE-2026-72792, resides within the /api/tag/getTag endpoint. When the application runs in public publish mode, unauthenticated remote attackers can query this endpoint to retrieve structural metadata. The endpoint returns tag labels and occurrence counts originating from password-protected documents without validating the user's authorization status.

The underlying flaw is categorized as CWE-863 (Incorrect Authorization). By exploiting this behavior, an attacker can map sensitive vocabulary, internal terminology, and proprietary metadata. This compromises the confidentiality boundaries established by the notebook author.

Root Cause Analysis

The root cause of CVE-2026-72792 is a logical omission during authorization checks in the tag processing workflow. The core logic handles read-only requests by retrieving document visibility states. However, it fails to evaluate whether target documents are protected by passwords.

When a client queries /api/tag/getTag, the server determines if the request context represents a restricted public reader. If this evaluation evaluates to true, the application filters the returned tag array. The legacy filtering logic relied on the FilterTagsByPublishIgnore function, which only inspected if document paths were explicitly marked as invisible or completely unpublished.

Because the system omitted checks for password-protection states during this aggregation, database queries extracted tag spans across all published documents. The application compiled these tags and served the structured response directly to unauthenticated visitors. The system assumed that because a document was published, its tag structure was public, neglecting the access restriction enforced by the document's password.

Code-Level Patch Analysis

To understand the technical mechanics, compare the insecure implementation with the corrected logic implemented in version v3.7.4. The legacy implementation in kernel/model/publish_access.go was structured as follows:

// Legacy Vulnerable Filter in kernel/model/publish_access.go
func FilterTagsByPublishIgnore(publishIgnore PublishAccess, tags *Tags) (ret *Tags) {
    spans := sql.QueryTagSpans("")
    labelCounts := make(map[string]int)
    for _, span := range spans {
        // Only checks if the document is ignored or invisible
        if CheckPathAccessableByPublishIgnore(span.Box, span.Path, publishIgnore) {
            label := util.UnescapeHTML(span.Content)
            labelCounts[label] += 1
        }
    }
    ret = &Tags{}
    // ... constructs and returns tags
}

The patch introduced FilterTagsByPublishAccess to properly enforce authorization checks based on session cookies. The corrected implementation validates the existence of active password sessions:

// Patched Implementation (v3.7.4+)
func filterTagsByPublishAccess(c *gin.Context, publishAccess PublishAccess, tags *Tags, spans []*sql.Span) (ret *Tags) {
    publishInvisible := GetInvisiblePublishAccess(publishAccess)
    publishDisable := GetDisablePublishAccess(publishAccess)
    labelCounts := make(map[string]int)
    for _, span := range spans {
        // 1. Verify document path is neither invisible nor disabled
        if !CheckPathAccessableByPublishIgnore(span.Box, span.Path, publishInvisible) ||
            !CheckPathAccessableByPublishIgnore(span.Box, span.Path, publishDisable) {
            continue
        }
        // 2. Retrieve password configuration for the document path
        passwordID, password := GetPathPasswordByPublishAccess(span.Box, span.Path, publishAccess)
        // 3. Enforce auth check if password protection is enabled
        if password != "" && !CheckPublishAuthCookie(c, passwordID, password) {
            continue
        }
        label := util.UnescapeHTML(span.Content)
        labelCounts[label] += 1
    }
    ret = &Tags{}
    // ... constructs and returns authorized tags
}

By querying GetPathPasswordByPublishAccess and applying CheckPublishAuthCookie, the patched engine discards tag nodes when the requesting client has not provided the correct document password.

Exploitation Methodology

Exploitation of CVE-2026-72792 requires no authentication and can be completed via simple HTTP requests. An attacker first scans for a target SiYuan notebook server operating in publish mode. The attacker then targets the endpoint /api/tag/getTag using standard HTTP clients.

The request payload consists of an empty JSON object sent via a POST request. The server parses the request and initiates the database query to aggregate tag spans. Because the vulnerable server does not check document-level passwords, the database retrieves and returns all tags.

POST /api/tag/getTag HTTP/1.1
Host: target.siyuan.instance
Content-Type: application/json
 
{}

The response contains a JSON payload containing tag labels and their total occurrence counts. Even if a document named Secret_Project_Plan.sy is password-protected, labels like Project-Mercury, merger-target-corp, or vulnerability-disclosures are leaked. This allows the attacker to reconstruct the outline, vocabulary, and contents of the protected workspace.

Impact Assessment & Cryptographic Limitations

The security impact of CVE-2026-72792 is defined as low-to-moderate information disclosure. While the vulnerability does not directly permit remote code execution, it leaks internal metadata that can facilitate highly targeted attacks or expose confidential business strategies.

Beyond metadata leakage, an analysis of the patch reveals potential cryptographic weaknesses in how SiYuan authorizes readers. The helper function CheckPublishAuthCookie verifies access by checking a client-supplied cookie value against a SHA-256 hash. This hash is constructed deterministically from predictable components:

$$\text{Cookie Value} = \text{SHA256}(\text{Document ID} + \text{Document Password})$$

Because the application uses a static SHA-256 hash without an application-wide salt or dynamic session state, it is vulnerable to offline dictionary attacks. If an attacker recovers the document ID from the public interface, they can generate candidate password hashes offline. Once they match the cookie signature, they bypass document access controls completely.

Mitigation & Remediation Guidance

The primary remediation path for CVE-2026-72792 is upgrading the SiYuan application to version v3.7.4 or later. This version replaces the insecure tag aggregation flow with authenticated path validation.

Administrators who cannot immediately upgrade should implement temporary access restrictions. Disable publish mode completely if sensitive documents are hosted on the instance. Alternatively, configure reverse proxies or Web Application Firewalls (WAF) to block external access to /api/tag/getTag and other administrative API endpoints.

# Nginx block rule example
location = /api/tag/getTag {
    deny all;
    return 403;
}

Reviewing the integrity of active document passwords is also recommended. Since the authorization cookies are generated deterministically, administrators must ensure that password-protected notebooks use strong, high-entropy passwords to prevent offline brute-force attacks on the SHA-256 cookie generation routine.

Fix Analysis (1)

Technical Appendix

CVSS Score
6.9/ 10
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
EPSS Probability
0.24%
Top 85% most exploited

Affected Systems

SiYuan personal knowledge management system

Affected Versions Detail

Product
Affected Versions
Fixed Version
SiYuan
siyuan-note
< 3.7.43.7.4
AttributeDetail
CWE IDCWE-863
Attack VectorNetwork
CVSS Score6.9 (Medium)
EPSS Score0.00237 (Percentile: 14.53%)
ImpactInformation Disclosure (Metadata Leakage)
Exploit StatusPoC available
KEV StatusNot listed in CISA KEV

MITRE ATT&CK Mapping

T1068Exploitation for Privilege Escalation
Privilege Escalation
CWE-863
Incorrect Authorization

The software performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly execute the authorization check, allowing attackers to access restricted resources or bypass access controls.

Known Exploits & Detection

GitHub Security AdvisoryOfficial security advisory containing details on the tag leak vulnerability.

Vulnerability Timeline

Vulnerability patched in commit 4515fa257cfae2db0a43844c61de8ef1ac853796
2026-07-26
CVE-2026-72792 published and GHSA-mp7r-57w4-5qm3 released
2026-08-12
CVE record updated with enriched analysis
2026-08-14

References & Sources

  • [1]GitHub Security Advisory GHSA-mp7r-57w4-5qm3
  • [2]SiYuan Fix Commit 4515fa257cfae2db0a43844c61de8ef1ac853796
  • [3]VulnCheck Advisory for SiYuan
  • [4]CVE-2026-72792 on CVE.org

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•3 minutes ago•CVE-2026-46429
5.5

CVE-2026-46429: Unrestricted File Upload and Validation Bypass in GeoNode

GeoNode versions prior to 5.0.3 contain an unrestricted file upload vulnerability (CWE-434) within the document and dataset ingestion architecture. Authenticated low-privileged users can bypass upload validation via direct REST API interactions, file extension masquerading, metadata mutation via PATCH requests, or malicious archive submissions. This allows attackers to store and serve dangerous file types, alter on-disk file references, or trigger path traversal and resource exhaustion during archive extraction.

Amit Schendel
Amit Schendel
0 views•10 min read
•about 1 hour ago•CVE-2026-55649
6.3

CVE-2026-55649: Stored Cross-Site Scripting in GeoNode Document Metadata Abstract Field

CVE-2026-55649 is a stored Cross-Site Scripting (XSS) vulnerability in GeoNode versions prior to 5.0.3. The flaw exists because document abstract metadata fields are ingested via the metadata management pipeline and stored in the backend database without HTML sanitization or input neutralization. An authenticated attacker with privileges to create or edit document metadata can inject arbitrary HTML and JavaScript payloads into these fields. When another user, such as an administrator, views the affected document page or catalog listing, the unencoded payload is rendered into the Document Object Model (DOM) and executes within the victim's browser session.

Amit Schendel
Amit Schendel
4 views•9 min read
•about 2 hours ago•GHSA-QX75-2P3R-PWM5
7.7

CVE-2026-55622: Cross-Project Instance Copy Authorization Bypass in Canonical LXD and LXC Incus

CVE-2026-55622 (GHSA-qx75-2p3r-pwm5) is an improper access control vulnerability (CWE-284) in Canonical LXD and LXC Incus (tracked as GHSA-c9f5-j9c3-mhrg). In multi-tenant deployments utilizing project-based isolation, the REST API handler for instance creation via POST /1.0/instances verifies that the authenticated user has authorization in the destination project specified by the query parameter, but fails to verify whether the user holds read or view permissions for the source instance when executing a copy operation across projects. Consequently, an authenticated client restricted to a single project can clone instances or snapshots from unauthorized projects into their own project, resulting in complete disclosure of the target instance filesystem and embedded credentials.

Amit Schendel
Amit Schendel
3 views•11 min read
•about 3 hours ago•GHSA-7MR3-28H5-M5VX
7.7

GHSA-7mr3-28h5-m5vx: Authorization Bypass and Cross-Project Volume Copy in Canonical LXD

An authorization bypass vulnerability in Canonical LXD (tracked as GHSA-7mr3-28h5-m5vx and CVE-2026-55621, and as GHSA-64f3-v33m-w89f in Linux Containers Incus) allows an authenticated user with restricted project access to copy custom storage volumes and volume snapshots from unauthorized projects. The flaw resides in the storagePoolVolumesPost REST API handler, which verifies permissions on the destination project but fails to check whether the caller holds view entitlements on the source project or volume specified in the request body.

Alon Barad
Alon Barad
3 views•10 min read
•about 4 hours ago•GHSA-47W9-6R3F-938G
9.9

GHSA-47w9-6r3f-938g: Authorization Bypass and Host Root Command Execution in Canonical LXD and Incus

A missing authorization and configuration validation vulnerability in Canonical LXD and LXC Incus allows authenticated users within restricted projects to bypass project security boundaries. By smuggling prohibited low-level configuration directives (such as raw.lxc or raw.qemu) inside instance snapshots or backup archives, an attacker can restore these configurations within a restricted project and execute arbitrary commands with root privileges on the underlying host operating system.

Alon Barad
Alon Barad
4 views•11 min read
•about 5 hours ago•GHSA-JPF8-86F3-WP38
9.9

CVE-2026-48752: Arbitrary Host File Read and Write via Templates Symlink in Canonical LXD and Incus

A symbolic link traversal vulnerability (CWE-59) in Canonical LXD and Linux Containers Incus allows an authenticated user with image import permissions to read and write arbitrary files on the host filesystem. During image archive unpacking, the daemon fails to reject top-level symbolic links for the instance `templates` directory. Subsequent requests to the instance template API endpoints follow this symbolic link outside the instance storage directory with root privileges, enabling complete host compromise.

Amit Schendel
Amit Schendel
4 views•10 min read