CVE-2026-59832: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in siyuan-note siyuan
SiYuan is an open-source personal knowledge management system. Prior to 3.7.1, the /snippets/*filepath route handler serveSnippets in kernel/server/serve.go joins a single-decoded request path with the snippets directory without subpath containment or sensitive-path checks, allowing an authenticated request such as /snippets/%2e%2e/%2e%2e/conf/conf.json to read workspace secrets and the document database. This issue is fixed in versions 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 base score of 7.7, indicating high severity, with network attack vector, low attack complexity, and requiring privileges but no user interaction. The vulnerability is fixed in 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 can lead to disclosure of confidential information, potentially compromising the confidentiality of the affected system. There is no indication of impact on integrity or availability.
Mitigation Recommendations
Upgrade SiYuan to version 3.7.1 or later, where this path traversal vulnerability is fixed. No other official remediation or temporary fixes are documented. Patch status is confirmed by the vendor stating the issue is fixed in 3.7.1.
CVE-2026-59832: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in siyuan-note siyuan
Description
SiYuan is an open-source personal knowledge management system. Prior to 3.7.1, the /snippets/*filepath route handler serveSnippets in kernel/server/serve.go joins a single-decoded request path with the snippets directory without subpath containment or sensitive-path checks, allowing an authenticated request such as /snippets/%2e%2e/%2e%2e/conf/conf.json to read workspace secrets and the document database. This issue is fixed in versions 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 base score of 7.7, indicating high severity, with network attack vector, low attack complexity, and requiring privileges but no user interaction. The vulnerability is fixed in 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 can lead to disclosure of confidential information, potentially compromising the confidentiality of the affected system. There is no indication of impact on integrity or availability.
Mitigation Recommendations
Upgrade SiYuan to version 3.7.1 or later, where this path traversal vulnerability is fixed. No other official remediation or temporary fixes are documented. Patch status is confirmed by the vendor stating the issue is fixed in 3.7.1.
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/17/2026, 09:50:38 UTC
Last updated: 08/23/2026, 22:52:12 UTC
Views: 81
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.