SiYuan 3.7.0 before 3.8.10 Path Traversal File Write via MCP web_fetch
- State
- Published
- Severity
- 6.0 Medium
- Published
- Nov 11, 2026
- Updated
- Nov 12, 2026
- Reserved
- Nov 11, 2026
Description
SiYuan 3.7.0 before 3.8.10 on Windows contains a path traversal vulnerability in kernel/util/webfetch.go that allows attackers to write files outside the import directory via backslash-encoded filenames. Attackers controlling a URL fetched by the MCP web_fetch or http_request tools can use %5C-encoded ..\ sequences to write chosen response bytes to directories above temp/import that are writable by the SiYuan user.
| Product | Versions |
|---|---|
| siyuan siyuan-note | 3.7.0 to before 3.8.10 Affected3.8.10 Not Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.0 Medium | VulnCheck | |
| 3.1 | 5.3 Medium | VulnCheck |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- GitHub Security Advisory (GHSA-hq2c-hh95-vrr6)Vendor Advisory
- https://github.com/siyuan-note/siyuan/commit/94d6a42a0362c0a6938a29ab84addb1fe0aca21cPatch
- siyuan v3.8.10 Release NotesRelease Notes
- https://github.com/siyuan-note/siyuan/blob/v3.7.0/kernel/util/webfetch.go#L155Technical Details
- VulnCheck Advisory: SiYuan 3.7.0 before 3.8.10 Path Traversal File Write via MCP web_fetchThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.