CVE-2026-126776

SiYuan 3.7.0 before 3.8.10 Path Traversal File Write via MCP web_fetch

Published Nov 11, 2026 CVSS 4.0 · 6 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is a path traversal flaw in SiYuan’s webfetch module that allows an attacker who controls the URL fetched by the MCP web_fetch or http_request tools to write arbitrary files outside the intended import directory. By encoding backslashes and using \\%5C sequences to craft \\..\ paths, the attacker can place chosen response bytes into directories above \\temp\\import that are writable by the SiYuan user, potentially modifying configuration files or installing malicious executables.

Affected Systems

SiYuan Note version 3.7.0 through 3.8.9 on Windows are known to be affected by this flaw. The issue is present in releases prior to 3.8.10 and pertains to the Windows build of the application.

Risk and Exploitability

The CVSS score of 6 indicates moderate severity, while an EPSS score of less than 1% shows exploitation is unlikely at present and the vulnerability is not listed in the CISA KEV catalog. The attack requires the adversary to supply a URL that SiYuan will fetch, meaning a network or local actor can trigger the file write by directing the application to retrieve a crafted resource. Though the flaw does not provide direct code execution, the ability to place arbitrary files in writable directories could lead to privilege escalation or persistence if the application processes those files later.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to version 3.8.10 or later, which includes a fix for the path traversal issue.
  • If an upgrade cannot be performed immediately, disable or restrict the MCP web_fetch and http_request features to prevent the application from fetching untrusted URLs.
  • Place the SiYuan import directory in a location that is non‑writable by the SiYuan user or otherwise ensure that any parent directories are write‑protected.
  • Apply filesystem path validation to reject backslash‑encoded and relative path components when processing URLs in the web fetch routine.

Generated by OpenCVE AI on November 13, 2026 at 19:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Siyuan
Siyuan siyuan
Vendors & Products Siyuan
Siyuan siyuan
Type Values Removed Values Added
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.
Title SiYuan 3.7.0 before 3.8.10 Path Traversal File Write via MCP web_fetch
First Time appeared B3log
B3log siyuan
Weaknesses CWE-22
CPEs cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
Vendors & Products B3log
B3log siyuan
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N'}

cvssV4_0

{'score': 6, 'vector': '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'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 12, 2026, 5:55 PM
Reserved
Nov 11, 2026, 6:27 PM
Status
Deferred
Published
Nov 11, 2026, 7:17 PM
Modified
Nov 12, 2026, 6:17 PM