Sep 5, 2026·6 min read·26 visits
Unauthenticated remote attackers can query the /api/notebook/getEncryptedNotebookStatus endpoint to discover sensitive notebook names, IDs, and lock states.
An information disclosure vulnerability exists in SiYuan prior to v3.7.4 due to missing authorization checks on the getEncryptedNotebookStatus API endpoint, allowing unprivileged or anonymous users to enumerate protected notebooks.
SiYuan is an open-source, self-hosted personal knowledge management system designed for secure note-taking. It features end-to-end encryption for individual notebooks, allowing users to secure sensitive contents locally or in private cloud instances. To manage these encrypted states, the application relies on an internal API kernel that responds to queries regarding structural configurations.
The vulnerability is classified under CWE-862 (Missing Authorization) and resides in the handling of the /api/notebook/getEncryptedNotebookStatus endpoint. This endpoint is designed to expose metadata indicating which notebooks are encrypted and their current cryptographic lock states. Due to a missing role-based middleware validation, the application fails to restrict access to authenticated administrative accounts.
As a consequence, unprivileged read-only users, publish-mode configurations, and anonymous readers can query this path. This grants external observers access to sensitive structural layout information without authenticating as an administrator. The exposed data includes absolute notebook identifiers, plain-text notebook titles, and internal lock states managed in the system memory.
The backend kernel of SiYuan is written in Go and utilizes the Gin web framework to handle routing and request dispatching. Route configurations are defined in kernel/api/router.go. In this routing table, specific handler functions are paired with authentication and authorization middlewares to enforce security boundaries.
In versions prior to v3.7.4, the route registration for /api/notebook/getEncryptedNotebookStatus only executed the model.CheckAuth middleware. This middleware verifies that the incoming request is associated with a valid session context or that the application is running in an environment where authentication requirements are globally bypassed, such as public reading modes. It does not evaluate the specific privileges or roles associated with the requesting entity.
Because the administrative validation middleware model.CheckAdminRole was omitted from this specific route, any user session containing the RoleReader or RoleEditor role could successfully resolve the request. Additionally, if the instance was configured to allow public-access readers, unauthenticated external actors could trigger the endpoint, bypassing the logical isolation of administrative configuration tools.
The structural difference between the vulnerable and secure configurations demonstrates how the routing engine was failing to enforce policy constraints. In the vulnerable version of the codebase, administrative endpoints such as password changes were protected by multiple layers of middleware, while the status checking endpoint remained unguarded.
// Vulnerable Route Configuration in kernel/api/router.go
ginServer.Handle("POST", "/api/notebook/lockNotebook", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, lockNotebook)
ginServer.Handle("POST", "/api/notebook/unlockAndOpenNotebook", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, unlockAndOpenNotebook)
ginServer.Handle("POST", "/api/notebook/changeMasterPassword", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, changeMasterPassword)
// The line below lacks the model.CheckAdminRole middleware
ginServer.Handle("POST", "/api/notebook/getEncryptedNotebookStatus", model.CheckAuth, getEncryptedNotebookStatus)The corresponding security patch resolved this flaw by inserting model.CheckAdminRole into the execution chain of the target handler. This forces the Gin router to evaluate the user role before passing control to the final business logic layer.
// Patched Route Configuration in kernel/api/router.go
ginServer.Handle("POST", "/api/notebook/getEncryptedNotebookStatus", model.CheckAuth, model.CheckAdminRole, getEncryptedNotebookStatus)To ensure the validity of this patch, developers implemented explicit unit tests to assert the behavior of the endpoint against varying authorization levels. This test verifies that RoleReader and RoleEditor sessions yield a 403 Forbidden status code, while administrative sessions return an HTTP 200 OK status with successful payload delivery. This programmatic enforcement prevents regressions in future release branches.
An attacker attempting to exploit this vulnerability does not require highly specialized tools. Because the handler responds to standard POST requests, a simple payload containing an empty JSON body sent via curl or a scripting library is sufficient to extract the sensitive information.
POST /api/notebook/getEncryptedNotebookStatus HTTP/1.1
Host: target-siyuan.local:6806
Content-Type: application/json
Cookie: s_session=low_privilege_reader_cookie
{}Upon receiving this request, a vulnerable instance parses the empty JSON structure and returns a complete list of encrypted notebooks registered within the installation directory. The response body reveals structural information that is critical for further targeted attacks.
{
"code": 0,
"msg": "",
"data": {
"notebooks": [
{
"id": "20260724123045-8abc123",
"name": "Proprietary Research & IP",
"closed": false
}
]
}
}The presence of the plain-text notebook name combined with its unique system ID exposes what files are present on the host filesystem. Furthermore, the boolean closed property discloses whether the decrypted key currently resides in active server memory, hinting at user activity and session status.
Although this vulnerability does not allow direct remote code execution or file modification, the exposure of configuration and directory names is highly valuable for reconnaissance. Attackers can leverage the leaked notebook titles to understand the contents and operations of the host environment, locating high-value data targets within the system.
The unique IDs retrieved from the vulnerable endpoint map directly to the directory structures stored on disk or within the synchronized cloud storage buckets. If an attacker has local access or read-only access to the file storage but lacks decryption credentials, mapping these folder hashes to human-readable names facilitates targeted offline recovery efforts.
Under CVSS v4.0, the vulnerability yields a base score of 6.9, reflecting its impact on the system's confidentiality boundaries. In situations where SiYuan is run as a collaborative knowledge base for enterprise teams, this information disclosure compromises the security isolation boundaries expected between readers and system administrators.
The definitive resolution for CVE-2026-72797 is upgrading the SiYuan installation to version v3.7.4 or later. For environments running SiYuan within containerized runtimes, administrators should verify that the application tag is locked to a non-vulnerable version rather than relying on unpinned versions.
In cases where immediate upgrades are restricted by organizational patch management procedures, network isolation controls must be enforced. Administrators should configure local firewall rules to restrict access to port 6806, ensuring that only trusted administrator loopback IP addresses or designated VPN segments can reach the application's underlying API interface.
To identify potential exploitation attempts in web application logs, security operations center (SOC) teams should analyze requests directed to /api/notebook/getEncryptedNotebookStatus. Multiple requests from client IP addresses associated with non-administrative activities, or sessions that suddenly trigger an HTTP 403 status after a patch is applied, should be treated as potential reconnaissance activity.
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| Product | Affected Versions | Fixed Version |
|---|---|---|
SiYuan siyuan-note | < 3.7.4 | 3.7.4 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-862 |
| Attack Vector | Network (AV:N) |
| CVSS v4.0 Score | 6.9 (Medium) |
| Exploit Status | Proof-of-Concept (via tests) |
| CISA KEV Status | Not Listed |
| Impact | Sensitive Metadata Leakage |
The product does not perform an authorization check when an actor attempts to access a resource or perform an action.
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.
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.
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.
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.
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.
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.