PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-126776 siyuan-note CVE debrief

A path traversal vulnerability exists in SiYuan 3.7.0 before 3.8.10 on Windows, allowing attackers to write files outside the import directory via backslash-encoded filenames. This issue arises from a flaw in kernel/util/webfetch.go that enables attackers controlling a URL fetched by the MCP web_fetch or http_request tools to use %5C-encoded .. sequences to write chosen response bytes to directories above temp/import that are writable by the SiYuan user.

Vendor
siyuan-note
Product
siyuan
CVSS
MEDIUM 6
CISA KEV
Not listed in stored evidence
Original CVE published
2026-11-11
Original CVE updated
2026-11-12
Advisory published
2026-11-11
Advisory updated
2026-11-12

Who should care

Defenders responsible for SiYuan deployments, particularly those using version 3.7.0 before 3.8.10 on Windows, should assess exposure and prioritize verification and remediation. They must review compensating controls for exposed systems while remediation is scheduled and verified, and check relevant monitoring, detection, and logs for exposed assets that need extra review.

Why it matters

The path traversal vulnerability in SiYuan 3.7.0 before 3.8.10 on Windows allows attackers to write files outside the import directory, potentially leading to unauthorized data modifications or code execution.

  • Verify and restrict access to the SiYuan import directory to prevent unauthorized file writes
  • Monitor for suspicious file writes to detect potential exploitation attempts
  • Upgrade to SiYuan version 3.8.10 or later to patch the vulnerability

Technical summary

The path traversal vulnerability in SiYuan 3.7.0 before 3.8.10 on Windows allows attackers to write files outside the import directory via backslash-encoded filenames. This issue arises from a flaw in kernel/util/webfetch.go that enables attackers controlling a URL fetched by the MCP web_fetch or http_request tools to use %5C-encoded .. sequences to write chosen response bytes to directories above temp/import that are writable by the SiYuan user.

Defensive priority

Defenders should prioritize verifying and upgrading to SiYuan version 3.8.10 or later, reviewing and restricting access to the SiYuan import directory, and monitoring for suspicious file writes.

Recommended defensive actions

  • Verify and upgrade to SiYuan version 3.8.10 or later
  • Review and restrict access to the SiYuan import directory
  • Monitor for suspicious file writes
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
  • Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed

Evidence notes

The vulnerability is confirmed in SiYuan 3.7.0 before 3.8.10 on Windows. The issue is caused by a path traversal flaw in kernel/util/webfetch.go. Attackers can write files outside the import directory using %5C-encoded .. sequences.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-126776 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-126776

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-126776 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-126776

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • SiYuan 3.7.0 before 3.8.10 Path Traversal File Write via MCP web_fetch

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/126xxx/CVE-2026-126776.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://github.com/siyuan-note/siyuan/security/advisories/GHSA-hq2c-hh95-vrr6

    Supplemental source - vendor-advisory

  • Source reference

    Unverified legacy reference

    URL: https://github.com/siyuan-note/siyuan/commit/94d6a42a0362c0a6938a29ab84addb1fe0aca21c

    Supplemental source - patch

  • Source reference

    Unverified legacy reference

    URL: https://github.com/siyuan-note/siyuan/releases/tag/v3.8.10

    Supplemental source - release-notes

  • Source reference

    Unverified legacy reference

    URL: https://github.com/siyuan-note/siyuan/blob/v3.7.0/kernel/util/webfetch.go

    Supplemental source - technical-description

  • Source reference

    Unverified legacy reference

    URL: https://www.vulncheck.com/advisories/siyuan-3.7.0-before-3.8.10-path-traversal-file-write-via-mcp-web-fetch

    Supplemental source - third-party-advisory

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.