Skip to main content

SiYuan EUVDEUVD-2026-136603

| CVE-2026-137471 CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-11-26 VulnCheck
9.0
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Gain network MitM on victim's cleartext HTTP WebDAV path
  2. Delivery
    Inject event-handler markup in malformed response header (trigger phrase)
  3. Exploit
    Victim manually starts sync
  4. Execution
    Unescaped error reaches Electron notification renderer
  5. Persist
    JavaScript executes with Node integration
  6. Impact
    Access local notes/files or run commands as user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires all of: (1) the victim has configured SiYuan's WebDAV sync over a CLEARTEXT HTTP endpoint (the evidence covers only HTTP and does not demonstrate TLS or an attacker-chosen endpoint); (2) the attacker holds a network man-in-the-middle position able to alter that WebDAV response (hence AC:H); (3) the tampered response carries a malformed response header whose error text matches the 'is being used by another' branch in formatRepoErrorMsg, carrying raw event-handler markup (AT:P); and (4) the victim MANUALLY starts sync - the first automatic failure updates sync status but emits no notification, so automatic failures alone do not trigger it (UI:P). The affected target is the SiYuan desktop Electron client with Node integration enabled (default desktop/local-kernel mode, where sanitizeKernelHTML leaves the message unchanged). Limiting factors that reduce real-world risk below the raw score: no SiYuan credentials are needed (PR:N) but a MitM position and a non-TLS WebDAV configuration are mandatory, and the manual-sync user action is required; TLS-protected WebDAV connections are not shown to be exploitable.

Impact

This is a genuinely high-impact issue whose practical exploitability is gated by several hard prerequisites, so the raw 9.0 and the act_now priority label should be read with nuance. The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:P) itself tells a mixed story: network vector and no privileges push severity up, but AC:H plus AT:P (a man-in-the-middle position on an already-configured CLEARTEXT HTTP WebDAV connection, plus a specifically malformed response matching a trigger phrase) and UI:P (the victim must manually start sync) materially narrow who can pull it off. Impact is severe and well-supported - Electron Node integration yields code execution as the logged-in user (VC/VI/VA:H and subsequent-system SC/SI/SA:H). No KEV entry is present in the input, so there is no evidence of active exploitation; the input also provides no EPSS score, so statistical exploitation probability is unverifiable here. A detailed PoC with a passing integration test is published in the GHSA advisory, which raises credibility that the bug is real and reproducible, but credible reproduction is not the same as in-the-wild exploitation. Net: a real priority to patch given confirmed vendor fix and act_now labeling, but the attack is conditional (network-tampering position + cleartext HTTP WebDAV + manual sync) rather than a spray-and-pray remote exploit. The one signal tension worth flagging: Decision label is act_now and a working PoC exists, yet no KEV and no EPSS are provided, suggesting the urgency reflects impact and PoC maturity rather than observed mass exploitation.

Exploit ScenarioDerived

A victim has configured SiYuan desktop to sync notes via WebDAV over plain HTTP, and an attacker positioned on the network path (e.g., shared/hostile Wi-Fi or a compromised router) tampers with the WebDAV server's response, embedding event-handler HTML in a malformed response header that matches the 'is being used by another' error branch. When the victim manually triggers a sync, the unescaped markup reaches the Electron notification renderer and runs JavaScript with Node integration as the logged-in user, allowing access to local notes/files or command execution. A complete, reportedly passing Go/Electron integration-test PoC is included in the GHSA advisory, so reproduction tooling is public; AC:H and AT:P mean the attacker still needs the MitM position and a correctly crafted malformed response.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.6% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 26, 2026

Cross-site scripting in SiYuan's WebDAV sync-error formatting lets a network attacker who can alter a cleartext HTTP WebDAV response inject event-handler markup that executes JavaScript with Node integration in the desktop client's notification renderer, granting access to local notes and files or command execution as the logged-in user. SiYuan versions before 3.8.10 are affected; exploitation requires a man-in-the-middle position on an already-configured non-TLS WebDAV endpoint, a malformed response header whose error text matches a specific branch in formatRepoErrorMsg, and the victim manually starting sync (the first automatic failure updates status but emits no notification), and authentication is not needed (CVSS 4.0 PR:N, UI:P, AC:H). No confirmed active exploitation is reported and the issue is not in CISA KEV, but the vendor advisory ships a reproduction test with a malformed-response HTTP fixture demonstrating the trigger; TLS-protected WebDAV connections are not shown to be exploitable.

RemediationAI

Upgrade SiYuan to 3.8.10 or later, which is the fixed release listed in the package data; the upstream fix is commit d3af9d5782082b379d45a69eedf4ebcfe8ba6889 and the details are in the vendor advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-7258-5hpf-xq6w. The advisory's suggested code-level fix is to keep untrusted error text escaped through every formatting branch - formatting the fallback from the escaped value rather than the original error - and to treat sync-error messages as plain text (or apply a strict allowlist sanitizer) at the final notification boundary, with regression coverage for a malformed response header containing the trigger phrase plus event-handler markup. Until upgrading, the demonstrated attack path can be removed by pointing WebDAV sync at an HTTPS endpoint: the evidence covers only cleartext HTTP and does not show a TLS failure, so TLS interception would be required and is outside what was proven. Additional exposure reduction consistent with the prerequisites is to avoid manually starting sync while on untrusted networks, since automatic failures alone emit no notification; note that neither measure addresses the underlying unescaped-formatting defect, which only the 3.8.10 update fixes.

Affected VersionsENISA

SiYuan 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

The flaw is CWE-79 improper neutralization of input during web page generation, rooted in the Go-side helper formatRepoErrorMsg used to render WebDAV download failures. That helper first HTML-escapes err.Error(), then tests the escaped string for the substring 'is being used by another'; when the substring is present, the fallback branch formats the original, unescaped error instead of the escaped value. An untyped Go HTTP response-parser error produced by a malformed response header can therefore carry raw markup through the sync-error message. The message is broadcast to the main browser session as a cmd=msg notification: the production processMessage.ts dispatcher calls showMessage in message.ts, and in local-kernel mode sanitizeKernelHTML in hostCapabilities.ts leaves the message unchanged, so the notification renderer parses it as HTML. Because the Electron desktop main renderer runs with Node integration enabled by default, injected handlers such as an img onerror can call require('node:fs') and write files. The advisory notes the same class of defect previously surfaced on unrelated rendering surfaces (gutter-button attributes, card-manager innerHTML, gallery/kanban field descriptions, synced captions), but this path - malformed WebDAV response header into the sync-error formatter and out to the main-session notification renderer - is distinct. The trigger mechanism is fully described in the supplied source evidence, which covers cleartext HTTP only and does not demonstrate a TLS failure or attacker-selected endpoint.

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 9.0 CRITICAL
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
vuln.today AI 8.3 HIGH

AC:H because the attacker must occupy a MitM position on a cleartext HTTP WebDAV connection and craft a matching malformed response; UI:R for the manual sync; S:C and C/I/A:H because execution crosses into the local Electron renderer with Node integration.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

DescriptionCVE.org

SiYuan before 3.8.10 contains a cross-site scripting vulnerability where WebDAV sync error formatting skips HTML escaping for certain malformed-response errors, passing raw markup to the Electron notification renderer. A network attacker who alters a cleartext HTTP WebDAV response can inject event-handler markup that, when the victim manually starts sync, executes JavaScript with Node integration as the logged-in user.

Technical POC Analysis

The bug is CWE-79, Improper Neutralization of Input During Web Page Generation.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A critical vulnerability in the SiYuan desktop note-taking application (versions before 3.8.10) could allow an attacker with a man-in-the-middle position on unencrypted WebDAV connections to execute malicious code on the user's machine, potentially exposing local notes and files. This affects all users who have configured non-TLS WebDAV sync, primarily in organizations with on-premises or cloud WebDAV endpoints lacking proper encryption. Leadership should prioritize patching to prevent data breach and system compromise, as the impact extends to confidentiality and integrity of sensitive information.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 57% exploitable
Prevalence
Low
niche open-source personal knowledge/note-taking app, limited enterprise footprint
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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

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