Description
SiYuan before v3.7.2 contains a path traversal vulnerability in the /export/temp/ short-circuit branch of the serveExport handler (kernel/server/serve.go). Unlike the main export branch, this branch joins the raw, percent-decoded request path with util.TempDir and serves the file without the IsSubPath or IsSensitivePath checks added in the earlier export-disclosure hardening (GHSA-6865-qjcf-286f). An authenticated attacker can send percent-encoded traversal sequences (e.g. /export/temp/%2e%2e/.../etc/passwd, where %2e%2e is decoded to '..') to read arbitrary files outside TempDir, including /etc/passwd, SSH keys (~/.ssh/*), and SiYuan workspace *.db and *.log files, bypassing the sensitive-file protection.
Published: 2026-07-23
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SiYuan before version 3.7.2 contains a path traversal flaw in the /export/temp/ shortcut route of serveExport. An attacker who has authenticated access can craft a request that includes percent‑encoded traversal sequences, such as %2e%2e, which are decoded to '..'. The application then joins the decoded path with the temporary directory without performing sub‑path or sensitivity checks, allowing the victim to read any file under the server’s filesystem. This can expose sensitive configuration files, SSH keys, database and log files, as well as system files like /etc/passwd, thereby compromising confidentiality and potentially enabling further attacks if credentials are obtained.

Affected Systems

The vulnerability affects the Siyuan Note application (siyuan-note:siyuan). All releases prior to v3.7.2 are impacted. No specific minor releases are listed; follow the vendor advisory for version details.

Risk and Exploitability

The issue has a CVSS v3.1 score of 7.1, indicating high severity, but the EPSS score is below 1%, suggesting that the probability of active exploitation is low at present. The vulnerability is not listed in the CISA KEV catalog. An authenticated attacker can remotely trigger the flaw via HTTP requests to /export/temp/, so the attack vector is remote. Because the flaw allows reading arbitrary files, it could be a stepping stone to further credential‑based attacks if sensitive credentials are exposed.

Generated by OpenCVE AI on August 3, 2026 at 21:38 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Implement the vendor‑issued patch by upgrading SiYuan to version 3.7.2 or later, which adds proper sub‑path and sensitive file checks to the /export/temp/ endpoint.
  • If an upgrade is not feasible, temporarily block external access to the /export/temp/ endpoint or enforce stricter authentication barriers to prevent malicious exploitation.
  • Continuously monitor HTTP logs for unusual /export/temp/ requests containing encoded traversal patterns, and investigate any anomalous activity.

Generated by OpenCVE AI on August 3, 2026 at 21:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
First Time appeared B3log
B3log siyuan
CPEs cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
Vendors & Products B3log
B3log siyuan

Mon, 27 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 27 Jul 2026 15:45:00 +0000

Type Values Removed Values Added
First Time appeared Siyuan
Siyuan siyuan
Vendors & Products Siyuan
Siyuan siyuan

Thu, 23 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Description SiYuan before v3.7.2 contains a path traversal vulnerability in the /export/temp/ short-circuit branch of the serveExport handler (kernel/server/serve.go). Unlike the main export branch, this branch joins the raw, percent-decoded request path with util.TempDir and serves the file without the IsSubPath or IsSensitivePath checks added in the earlier export-disclosure hardening (GHSA-6865-qjcf-286f). An authenticated attacker can send percent-encoded traversal sequences (e.g. /export/temp/%2e%2e/.../etc/passwd, where %2e%2e is decoded to '..') to read arbitrary files outside TempDir, including /etc/passwd, SSH keys (~/.ssh/*), and SiYuan workspace *.db and *.log files, bypassing the sensitive-file protection.
Title SiYuan before v3.7.2 Path Traversal via /export/temp/
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:06:09.636Z

Reserved: 2026-07-22T10:48:36.000Z

Link: CVE-2026-65607

cve-icon Vulnrichment

Updated: 2026-07-27T16:13:35.252Z

cve-icon NVD

Status : Deferred

Published: 2026-07-23T12:18:47.633

Modified: 2026-07-27T17:16:40.020

Link: CVE-2026-65607

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T21:45:03Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')