AploSec / Disclosures / CVE-2026-126776
SiYuan 3.7.0 before 3.8.10 Path Traversal File Write via MCP web_fetch
CVE-2026-126776 · published 2026-11-11
In plain words: this type of bug lets someone read or write files outside the folder they should be limited to (path traversal). A fixed release is listed.
Summary
CVE-2026-126776 affects siyuan (Desktop) >= 3.7.0, < 3.8.10: MCP web_fetch saves fetched bytes outside the temp and import directories (CWE-22). Fixed in 3.8.10. CVSS 4.0 base score 6.0 (Medium), assigned by VulnCheck. Published 2026-11-11 by VulnCheck. Credit: Zachariah Mithani.
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.
Evidence
Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.
Remediation
Upgrade siyuan to 3.8.10 or later. Releases in the affected range (>= 3.7.0, < 3.8.10) are vulnerable. See the linked advisory for details on affected release lines.
Timeline
- 2026-11-11 CVE published
References
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/siyuan-3.7.0-before-3.8.10-path-traversal-file-write-via-mcp-web-fetch
- Referencehttps://github.com/siyuan-note/siyuan/security/advisories/GHSA-hq2c-hh95-vrr6
- Fix commithttps://github.com/siyuan-note/siyuan/commit/94d6a42a0362c0a6938a29ab84addb1fe0aca21c
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-126776
- NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-126776
- Severity
- Medium 6.0CVSS 4.0, scored by VulnCheck in the CVE record
- Package
- siyuan
- Ecosystem
- Desktop
- Affected
- >= 3.7.0, < 3.8.10
- Fixed
- 3.8.10
- Weakness
- CWE-22
- CNA
- VulnCheck
- Credit
- Zachariah Mithanifinder