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

CVE-2026-72802: Sensitive Information Disclosure via Administrative Asset Resolvers in SiYuan Note

Amit Schendel
Amit Schendel
Senior Security Researcher

Sep 4, 2026·6 min read·21 visits

Executive Summary (TL;DR)

An authorization bypass through user-controlled keys in SiYuan Note allows unauthenticated readers to extract absolute local filesystem paths, exposing host usernames and operating system layout information.

SiYuan Note versions prior to v3.7.4 contain an information disclosure vulnerability in the `/api/asset/resolveAssetPath` endpoint. This endpoint returns absolute backend filesystem paths unmodified to CheckAuth-only requests. Low-privileged users or unauthenticated readers under publish mode can exploit this to leak the local directory layout, operating system username, and overall host deployment structure.

Vulnerability Overview

SiYuan Note is a local-first personal knowledge management system designed to support offline-first editing, cloud synchronization, and self-hosted publishing. When configured in publish mode, the application allows documents and accompanying assets to be shared with standard users or the public web.

The vulnerability is classified under CWE-639 (Authorization Bypass Through User-Controlled Key). The affected components are the administrative-tier asset resolution APIs located inside the Go-based application backend. These endpoints fail to restrict access to authenticated administrative users, exposing severe structural information to lower-privileged read-only roles.

An attacker interacting with a public or low-privileged view of a SiYuan Note instance can query the server's asset management routing paths. By specifying relative asset paths harvested from published notes, the attacker can leverage the underlying application directory mapping handlers to retrieve unmasked absolute backend file paths. This disclosure exposes local user directory structures, OS layouts, and underlying host configuration environments.

Root Cause Analysis

The vulnerability stems from an inadequate authorization architecture in kernel/api/router.go. Specifically, three sensitive administrative endpoints are registered with only basic session verification middleware: /api/asset/resolveAssetPath, /api/asset/getUnusedAssets, and /api/asset/getMissingAssets.

The fundamental middleware layer model.CheckAuth ensures that a requester has a valid session. However, under SiYuan's permission model, when an instance is in publish mode, anonymous visitors or low-privileged users (such as those holding the model.RoleReader role) possess a valid session state that satisfies this basic check.

When a request reaches the /api/asset/resolveAssetPath endpoint, the internal application logic retrieves the storage path of the specified asset by executing model.GetAssetAbsPathInBox(path, ""). Because the API handler directly returns the output of this resolution to the response buffer without sanitizing, mapping, or relativizing the string, the host server's local file paths are returned to the client in plain text.

Code Analysis and Security Regression Tests

Analyzing the patch in kernel/api/router.go confirms that the vulnerability was resolved by appending the model.CheckAdminRole middleware to the vulnerable routes.

Below is the comparison between the vulnerable and patched endpoint definitions:

// Vulnerable routing configuration
ginServer.Handle("POST", "/api/asset/resolveAssetPath", model.CheckAuth, resolveAssetPath)
ginServer.Handle("POST", "/api/asset/getUnusedAssets", model.CheckAuth, getUnusedAssets)
ginServer.Handle("POST", "/api/asset/getMissingAssets", model.CheckAuth, getMissingAssets)
 
// Patched routing configuration
ginServer.Handle("POST", "/api/asset/resolveAssetPath", model.CheckAuth, model.CheckAdminRole, resolveAssetPath)
ginServer.Handle("POST", "/api/asset/getUnusedAssets", model.CheckAuth, model.CheckAdminRole, getUnusedAssets)
ginServer.Handle("POST", "/api/asset/getMissingAssets", model.CheckAuth, model.CheckAdminRole, getMissingAssets)

The implementation of model.CheckAdminRole intercepts incoming requests, extracts the associated context variables mapped in Gin (model.RoleContextKey), and guarantees that only clients with verified administrative roles are allowed to access the route. If the context contains a lower privilege tier like model.RoleReader, the middleware stops further execution and responds with a 403 Forbidden status.

To ensure this regression is permanently blocked, the developer implemented a unit test file kernel/api/asset_authorization_test.go. The test artificially assigns the RoleReader permission context to the requests and verifies that invoking any of the three endpoints yields a strict 403 status:

func TestAssetAdminEndpointsRejectReader(t *testing.T) {
	gin.SetMode(gin.TestMode)
	engine := gin.New()
	engine.Use(func(c *gin.Context) {
		c.Set(model.RoleContextKey, model.RoleReader)
		c.Next()
	})
	ServeAPI(engine)
	tests := []struct {
		path string
		body string
	}{
		{path: "/api/asset/resolveAssetPath", body: `{"path":"assets/test.png"}`},
		{path: "/api/asset/getUnusedAssets", body: `{}`},
		{path: "/api/asset/getMissingAssets", body: `{}`},
	}
	for _, test := range tests {
		t.Run(test.path, func(t *testing.T) {
			recorder := httptest.NewRecorder()
			request := httptest.NewRequest(http.MethodPost, test.path, strings.NewReader(test.body))
			request.Header.Set("Content-Type", "application/json")
			engine.ServeHTTP(recorder, request)
			if recorder.Code != http.StatusForbidden {
				t.Fatalf("reader request returned status %d: %s", recorder.Code, recorder.Body.String())
			}
		})
	}
}

Exploitation Methodology

To exploit this vulnerability, an attacker first locates a public-facing SiYuan Note application instance with Publish Mode enabled. By viewing any accessible page, the attacker inspects the DOM or source elements to identify valid relative asset paths utilized by the server. These paths are commonly formatted as assets/image-<timestamp>.png.

Using these relative assets, the attacker constructs an HTTP POST request targeted at /api/asset/resolveAssetPath. The request body contains the target relative path wrapped in JSON:

POST /api/asset/resolveAssetPath HTTP/1.1
Host: target-siyuan.example.com
Content-Type: application/json
Connection: close
 
{
  "path": "assets/image-20260724.png"
}

Upon receiving the request, the unpatched server resolves the filesystem path using local working directories and transmits the raw path back to the sender:

HTTP/1.1 200 OK
Content-Type: application/json
Connection: close
 
{
  "code": 0,
  "msg": "",
  "data": "/home/siyuan_user/.siyuan/data/assets/image-20260724.png"
}

This response reveals the operating system flavor, the path structures of the deployment, and the username siyuan_user. This harvested structural intelligence can then be used to construct more precise paths for directory traversal or server-side file-inclusion exploits in adjacent components.

Impact Assessment

The direct impact of CVE-2026-72802 is low-to-moderate information disclosure. While it does not directly permit remote code execution, database modification, or denial of service, it removes a critical layer of defense-in-depth.

By disclosing the absolute backend paths, an attacker gains exact structural maps of the server. Knowing the path /home/siyuan_user/.siyuan/data/... allows the attacker to learn the local username and verify directory patterns. On Windows servers, this may leak drive letters and system path names, highlighting specific administrative directory trees.

This intelligence streamlines the creation of targeted exploits. If a secondary vulnerability (such as an arbitrary file write or local file read) is discovered, the attacker can leverage these exact absolute paths to bypass path guessing entirely, making subsequent attacks highly reliable.

Mitigation and Remediation Guidance

The primary recommendation is to update the SiYuan Note instance to version v3.7.4 or higher immediately. This introduces the authorization role checking layer, preventing any low-privileged or unauthenticated sessions from invoking the asset-resolving endpoints.

If patching cannot be performed immediately, the following temporary mitigations can be implemented to minimize exposure:

  1. Disable Publish Mode: Restricting the application to single-user local setups without web publishing prevents anonymous connections from reaching the API layer.
  2. Implement Reverse Proxy Filter Rules: Configure front-end web servers (such as Nginx, Caddy, or Traefik) to actively drop requests pointing to the affected endpoints.

For example, an Nginx block can reject external traffic targeting these administrative endpoints:

location ~* /api/asset/(resolveAssetPath|getUnusedAssets|getMissingAssets) {
    return 403;
}

Official Patches

siyuan-noteGitHub Security Advisory GHSA-jv8v-xq2h-657v
siyuan-noteFix Commit: Restrict sensitive asset APIs to administrators

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:N/SI:N/SA:N
EPSS Probability
0.24%
Top 85% most exploited

Affected Systems

SiYuan Note

Affected Versions Detail

Product
Affected Versions
Fixed Version
SiYuan
siyuan-note
< 3.7.4v3.7.4
AttributeDetail
CWE IDCWE-639
Attack VectorNetwork
CVSS v4.0 Score6.9 (Medium)
CVSS v3.1 Score5.3 (Medium)
Exploit StatusNone
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1592Gather Victim Host Information
Reconnaissance
T1083File and Directory Discovery
Discovery
CWE-639
Authorization Bypass Through User-Controlled Key

The application fails to perform authorization checks when a user provides an input key to retrieve sensitive metadata or absolute target values, allowing unauthorized information access.

Vulnerability Timeline

Security patch committed directly to upstream repository.
2026-07-24
Coordinated public advisory disclosure (GHSA-jv8v-xq2h-657v).
2026-08-12
Vulnerability record analyzed and updated in NVD.
2026-08-26

References & Sources

  • [1]GitHub Security Advisory GHSA-jv8v-xq2h-657v
  • [2]VulnCheck Security Advisory
  • [3]SiYuan Note Commit eee3410aa131b76f1bd72e933d484cf1ece77e88

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

•2 minutes ago•CVE-2026-109619
9.2

CVE-2026-109619: Remote Code Execution in PHP Core via Stale Global State Memory Corruption (PHP2Shell)

CVE-2026-109619 (PHP2Shell) is a critical Use-After-Free vulnerability in the core PHP engine caused by improper global state cleanup during out-of-memory exception handling across persistent worker requests.

Alon Barad
Alon Barad
1 views•6 min read
•5 minutes ago•CVE-2026-113721
4.5

CVE-2026-113721: Unsafe Link Resolution in virtualenv File Generation

In Python virtualenv prior to version 21.14.9, activation script generators and configuration writers use Path.exists() before writing files. Because Path.exists() resolves symbolic links, it returns False for dangling symlinks. Consequently, virtualenv skips unlinking pre-planted symbolic links or hard links, writing data directly to target locations outside the intended virtual environment directory.

Amit Schendel
Amit Schendel
1 views•5 min read
•9 days ago•CVE-2026-87697
8.8

CVE-2026-87697: Untrusted Deserialization in .NET PresentationCore Clipboard Handling

A remote code execution vulnerability exists in Microsoft .NET due to untrusted data deserialization within the PresentationCore component. The flaw stems from implicit auto-conversion flags during clipboard data retrieval operations.

Alon Barad
Alon Barad
31 views•5 min read
•9 days ago•CVE-2026-70007
8.8

CVE-2026-70007: Out-of-Bounds Write Vulnerability in .NET Framework and WPF Subsystem

An out-of-bounds write vulnerability in Microsoft .NET Framework, .NET runtime, and Visual Studio allows unauthenticated remote attackers to execute arbitrary code via crafted pixel-shader bytecode or auto-converted clipboard payloads.

Amit Schendel
Amit Schendel
19 views•6 min read
•10 days ago•CVE-2026-70186
7.5

CVE-2026-70186: ASP.NET Core Denial of Service Vulnerability via Framework Deadlock

ASP.NET Core contains a thread deadlock vulnerability (CWE-833) that allows an unauthenticated remote attacker to cause a denial of service over the network by exhausting server thread pool resources.

Amit Schendel
Amit Schendel
18 views•5 min read
•10 days ago•CVE-2026-70035
8.8

CVE-2026-70035: Insecure Deserialization Remote Code Execution in Microsoft .NET Framework and .NET Runtime

CVE-2026-70035 is a high-severity Remote Code Execution (RCE) vulnerability in Microsoft .NET Framework, .NET runtime, and Visual Studio caused by improper handling during the deserialization of untrusted data (CWE-502). An unauthenticated attacker can execute arbitrary code within the context of the affected process by delivering a crafted serialized payload.

Amit Schendel
Amit Schendel
24 views•6 min read