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-72793

CVE-2026-72793: Information Disclosure and Session Forgery in SiYuan Note-Taking Application

Amit Schendel
Amit Schendel
Senior Security Researcher

Sep 5, 2026·6 min read·67 visits

Executive Summary (TL;DR)

Incomplete secret masking in the `/api/system/getConf` endpoint of SiYuan before v3.7.4 exposes session-cookie signing keys and absolute system directories, allowing attackers to hijack administrative sessions.

A critical information disclosure vulnerability in the SiYuan note-taking application allows remote attackers to retrieve sensitive configurations, including cryptographic session-cookie signing keys and absolute host system directories, leading to administrative session hijacking.

Vulnerability Overview

SiYuan is an open-source, local-first personal knowledge management platform designed to run as a local server or self-hosted web application. The platform exposes various API endpoints to handle system configuration, notebook synchronization, and user authorization. One of these endpoints, /api/system/getConf, serves system configuration states directly to client interfaces.

In versions prior to v3.7.4, the /api/system/getConf endpoint fails to sufficiently sanitize internal configuration parameters before writing the serialized JSON response. Although a dedicated secret-masking function is implemented on the backend, the default behavior exposes newly added or unhandled parameters due to an incomplete exclusionary design. Consequently, an unauthenticated user or low-privilege reader can query this endpoint to retrieve critical configuration details.

The exposed parameters include the session-cookie cryptographic signing key and absolute local directory paths. This exposure significantly broadens the attack surface of self-hosted instances. It provides malicious actors with the cryptographic material required to forge administrator session tokens, completely bypassing the primary access controls of the platform.

Root Cause Analysis

The root cause of CVE-2026-72793 lies in an inconsistent security posture across configuration retrieval endpoints combined with a fragile blocklist design. The SiYuan application separates configuration exposure into multiple API routes, such as /api/system/exportConf and /api/system/getConf. While the former implements an intensive sanitization process by deep-copying and whitelist-filtering data, the latter retrieves the live configuration struct and applies a localized redaction function.

This localized redaction function, named HideConfSecret, is defined within kernel/model/conf.go. This function uses an exclusionary blocklist approach, manually setting known sensitive variables to their default zero-values before the struct is serialized and returned to the client. This design pattern presents inherent security risks because any configuration field added during development remains fully exposed by default unless the developer manually updates the HideConfSecret function.

In versions prior to v3.7.4, several critical variables were omitted from this blocklist. These omitted variables include CookieKey, which is the HMAC secret used to validate user session tokens, and absolute path variables such as System.WorkspaceDir and Export.PandocBin. The omission of these variables allows any HTTP request that successfully hits /api/system/getConf to receive the plaintext session-signing secret and host file path structures.

Code Analysis

An analysis of the patch introduced in commit 2d8b98395a910251aea87e90a4fad9c7f954befe demonstrates the remediation of the blocklist omissions. In the vulnerable version of the codebase, the HideConfSecret function failed to inspect or clear fields within the Export configuration struct or the absolute directory configuration values within the System configuration struct. This omission allowed absolute installation paths to leak.

The following code comparison illustrates the patch applied to kernel/model/conf.go to explicitly redact the vulnerable fields:

// Before the patch, c.Export.PandocBin and c.System.WorkspaceDir remained fully populated.
func HideConfSecret(c *AppConf) {
	c.MCPOAuth = ""
	c.CookieKey = ""
	c.Api = &conf.API{}
+	if nil != c.Export {
+		c.Export.PandocBin = "" // Correctly redacts the absolute path to Pandoc binary
+	}
	c.Flashcard = &conf.Flashcard{}
	c.ServerAddrs = []string{}
	c.Publish = &conf.Publish{}
@@ -1270,6 +1273,7 @@ func HideConfSecret(c *AppConf) {
	c.System.ConfDir = ""
	c.System.DataDir = ""
	c.System.HomeDir = ""
+	c.System.WorkspaceDir = "" // Correctly redacts the absolute path of the workspace
	c.System.Name = ""
	c.System.NetworkProxy = &conf.NetworkProxy{}
}

Additionally, the developers implemented a robust unit test suite within kernel/model/conf_secret_test.go to verify the sanitization of these sensitive paths. The test initializes a mock AppConf structure containing realistic file path properties on both Windows and Linux, executes HideConfSecret, and asserts that all directory paths and keys are reduced to empty strings. This regression test prevents future code additions from accidentally exposing host file paths through these interfaces.

Exploitation Methodology

To exploit this vulnerability, an attacker must first locate an exposed SiYuan instance over the network. Because the /api/system/getConf endpoint is registered with standard authorization handlers rather than restricted administrative middleware, users with general reading or publishing access can query it. If the server does not enforce an access authorization code, the query can be performed anonymously.

The attacker issues an HTTP POST request to the /api/system/getConf path with an empty JSON object. The server processes the request, applies the incomplete HideConfSecret sanitizer, and returns the configuration JSON document. The attacker parses this response to locate the cookieKey field containing the raw HMAC secret, alongside absolute path variables that reveal the host operating system and username.

Once the cryptographic cookieKey is obtained, the attacker can generate a valid, signed administrative session cookie locally. Because the SiYuan backend validates session identity signatures using this specific key, the server accepts the forged cookie as a valid credential. This signature validation bypass provides the attacker with immediate administrative access to the active workspace.

Impact Assessment

The exposure of the session-cookie signing key allows for a complete bypass of the application's authentication model. Attackers can forge sessions for any active user, including the primary administrator. This access level permits the remote execution of arbitrary workspace management functions, such as data modifications, file uploads, and configuration overrides.

Additionally, the exposure of absolute path variables such as Export.PandocBin and System.WorkspaceDir compromises host system privacy. These paths typically contain the local operating system username, exposing the file system hierarchy of the host. This metadata allows attackers to tailor subsequent host-level attacks, such as directory traversal or local privilege escalation exploits.

Under CVSS v3.1, this vulnerability is rated 8.6, reflecting high confidentiality compromise. When evaluated under CVSS v4.0, the vulnerability scores 9.2, as the exploitation of the cryptographic key material directly leads to downstream integrity and availability compromise on the system hosting the application.

Remediation & Defenses

The primary remediation for CVE-2026-72793 is to upgrade the SiYuan application to version 3.7.4 or later. The update completely replaces the vulnerable configuration endpoints' data exposure by zeroing out the sensitive paths and session keys before serialization. Administrators should verify their current container, desktop, or server versions and apply the official updates immediately.

If patching cannot be executed immediately, administrators must implement access-authorization codes within the SiYuan settings. Enforcing an access-auth code restricts interaction with the API endpoints, blocking unauthorized queries. This access constraint prevents attackers from reaching the vulnerable /api/system/getConf interface without possessing the pre-shared authorization token.

As a defense-in-depth measure, administrators should rotate the session cookie configuration parameters upon upgrading. Since historical CookieKey values may have been logged or cached during the period of vulnerability, rotation ensures that any previously compromised key material is rendered invalid. This action terminates all existing sessions, neutralizing the risk of persistent unauthorized access.

Fix Analysis (1)

Technical Appendix

CVSS Score
8.6/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
EPSS Probability
0.24%
Top 85% most exploited
1,200
via Shodan

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-522
Attack VectorNetwork (AV:N)
CVSS Score8.6 (v3.1) / 9.2 (v4.0)
Exploit StatusProof of Concept
KEV StatusNot Listed
Vulnerability TypeInformation Disclosure / Insufficiently Protected Credentials

MITRE ATT&CK Mapping

T1552.001Unsecured Credentials: Credentials in Files / Config
Credential Access
T1083File and Directory Discovery
Discovery
T1539Steal Web Session Cookie / Session Hijacking
Lateral Movement
CWE-522
Insufficiently Protected Credentials

The product transmits or exposes sensitive credentials, keys, or directory structures to unauthorized actors.

Vulnerability Timeline

Patch commit developed and released
2026-07-25
CVE-2026-72793 published and security advisory disclosed
2026-08-12
NVD CVSS evaluation finalized
2026-08-26

References & Sources

  • [1]GHSA-h4v5-crx2-3cv4: SiYuan Information Disclosure in getConf
  • [2]VulnCheck Independent Advisory
  • [3]Remediation Patch Commit
  • [4]Official CVE Entry Record

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

•4 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