CVE-2026-59832: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in siyuan-note siyuan
SiYuan, an open-source personal knowledge management system, has a path traversal vulnerability in versions prior to 3.7.1. The vulnerability exists in the /snippets/*filepath route handler, which improperly joins a decoded request path with the snippets directory without validating subpath containment. This allows an authenticated user to access sensitive files outside the intended directory, such as workspace secrets and the document database. The issue is fixed in version 3.7.1.
AI Analysis
Technical Summary
CVE-2026-59832 is a path traversal vulnerability (CWE-22) in SiYuan before version 3.7.1. The /snippets/*filepath route handler in kernel/server/serve.go joins a single-decoded request path with the snippets directory without checking for subpath containment or sensitive paths. This flaw allows an authenticated attacker to craft requests like /snippets/%2e%2e/%2e%2e/conf/conf.json to read files outside the snippets directory, including workspace secrets and the document database. The vulnerability has a CVSS 3.1 score of 7.7 (High) with network attack vector, low attack complexity, required privileges, no user interaction, and impacts confidentiality with a scope change. The issue is resolved in SiYuan version 3.7.1.
Potential Impact
An authenticated attacker can exploit this vulnerability to read sensitive files outside the intended snippets directory, including workspace secrets and the document database. This leads to a confidentiality breach with potentially significant exposure of sensitive user data. There is no impact on integrity or availability reported.
Mitigation Recommendations
Upgrade SiYuan to version 3.7.1 or later, where this path traversal vulnerability is fixed. Since no official patch or temporary fix is explicitly stated beyond this version update, applying this upgrade is the recommended remediation. Patch status is not explicitly confirmed beyond the fix in 3.7.1; verify with the vendor advisory for the latest guidance.
CVE-2026-59832: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in siyuan-note siyuan
Description
SiYuan, an open-source personal knowledge management system, has a path traversal vulnerability in versions prior to 3.7.1. The vulnerability exists in the /snippets/*filepath route handler, which improperly joins a decoded request path with the snippets directory without validating subpath containment. This allows an authenticated user to access sensitive files outside the intended directory, such as workspace secrets and the document database. The issue is fixed in version 3.7.1.
CVSS v3.1
Score 7.7high
Affected software
pkg:github/siyuan-note/siyuanRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-59832 is a path traversal vulnerability (CWE-22) in SiYuan before version 3.7.1. The /snippets/*filepath route handler in kernel/server/serve.go joins a single-decoded request path with the snippets directory without checking for subpath containment or sensitive paths. This flaw allows an authenticated attacker to craft requests like /snippets/%2e%2e/%2e%2e/conf/conf.json to read files outside the snippets directory, including workspace secrets and the document database. The vulnerability has a CVSS 3.1 score of 7.7 (High) with network attack vector, low attack complexity, required privileges, no user interaction, and impacts confidentiality with a scope change. The issue is resolved in SiYuan version 3.7.1.
Potential Impact
An authenticated attacker can exploit this vulnerability to read sensitive files outside the intended snippets directory, including workspace secrets and the document database. This leads to a confidentiality breach with potentially significant exposure of sensitive user data. There is no impact on integrity or availability reported.
Mitigation Recommendations
Upgrade SiYuan to version 3.7.1 or later, where this path traversal vulnerability is fixed. Since no official patch or temporary fix is explicitly stated beyond this version update, applying this upgrade is the recommended remediation. Patch status is not explicitly confirmed beyond the fix in 3.7.1; verify with the vendor advisory for the latest guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-07T15:00:50.979Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a50252a68715ace43310cda
Added to database: 07/09/2026, 22:48:10 UTC
Last enriched: 07/09/2026, 23:02:43 UTC
Last updated: 07/10/2026, 02:22:31 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.