Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain network MitM on victim's cleartext HTTP WebDAV path
-
DeliveryInject event-handler markup in malformed response header (trigger phrase)
-
ExploitVictim manually starts sync
-
ExecutionUnescaped error reaches Electron notification renderer
-
PersistJavaScript executes with Node integration
-
ImpactAccess 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
Apply vendor patch.
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
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
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 has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c
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
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-136603
NVD
CVE.org
EPSS
GitHub
Exploit-DB