SIYUAN · CVE-2026-126776 · AI agents & MCP
NO FIX YET · SEE WHAT TO DO
SiYuan's MCP web_fetch and http_request tools mishandle backslash-encoded filenames on Windows. An attacker who controls a URL those tools fetch can write chosen bytes to folders the SiYuan user can write to, outside the import directory.
first public Nov 1, 2026 · 1 source
Could this affect your app?
Free first check from your website. Connect your repo for the full answer.
Only SiYuan on Windows in the affected range (3.7.0 before 3.8.10) is exposed, and the risk comes through the MCP web_fetch and http_request tools fetching an attacker-controlled URL. The sources do not say whether the tools are enabled by default, so check your configuration. Systems on other operating systems are not described as affected.
Not affected if fixed-3.8.10, mcp-fetch-tools-disabled, not-windows
Who cares mcp, siyuan, windows
3.7.0 up to but not including 3.8.10 are affected.web_fetch or http_request tools are enabled in your SiYuan setup; the sources do not say how to confirm this.3.8.10 or later.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.
Check it with your coding agent
It reads this page and tells you if your code is affected.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
This page as .md · .json · CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.