Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft .sy.zip with img onerror in attribute name
-
DeliveryVictim imports malicious package via importSY
-
ExploitVictim opens document attribute panel
-
ExecutionopenFileAttr renders name as innerHTML
-
Persistonerror handler runs in kernel origin
-
ImpactCommand execution on host
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 the attacker to deliver a crafted .sy.zip whose custom- attribute NAME contains an img onerror payload - the import path is the required delivery vector because SiYuan's own writer rejects such names (isValidAttrName allows only [a-z][a-z0-9-]*, and /api/attr/setBlockAttrs returned code -1), while importSY0 keeps the JSON key verbatim via dataparser's Map2IAL. The victim must then import that package and open the imported document's Attributes panel (document menu → Attributes → openFileAttr), which renders the raw key into the dialog innerHTML. Limiting factors: user interaction is mandatory (importing an untrusted .sy.zip and opening the attribute panel), the editor block DOM looks clean because Lute's safeIALAttrs strips the key, and only versions 3.8.10 and 3.8.11-beta.3 are affected (fixed in 3.8.11). The only complete fix stated by the vendor is updating to v3.8.11. |
| Impact | This is a moderately high but not emergency-grade issue. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, score 8.7) and my own assessment agree that exploitation is network-delivered, low-complexity, and requires no attacker authentication but does require victim interaction (UI:P). The real-world severity is amplified by the impact: the GHSA advisory confirms the injected img onerror handler runs in the kernel origin and enables command execution on the host, so a successful stored-XSS lands as effective host code execution (VC/VI/VA:H). Countering that, exploitation is not drive-by: the attacker must get a victim to import an attacker-crafted .sy.zip and then open that document's attribute panel, which bounds this to social-engineering/supply-of-untrusted-notes scenarios rather than mass internet exploitation. The vuln.today priority is 'this_week' and there is no CISA KEV listing, so there is no confirmed active exploitation; a detailed PoC is embedded in the vendor advisory. No EPSS score and no SSVC automatable/exploitation values were supplied, so the quantitative exploitation-probability signal is missing - the prioritization rests on the advisory's confirmed mechanism plus the 'this_week' label, not on exploitation telemetry. |
| Exploit ScenarioDerived | An attacker publishes or shares a malicious SiYuan .sy.zip export whose custom block attribute name embeds an img tag with an onerror handler. A victim imports the package via /api/import/importSY and later opens the document's Attributes panel, at which point openFileAttr assigns the unescaped name into the dialog innerHTML and the handler fires in the kernel origin, leading to command execution on the host. A working PoC script is embedded in the GHSA advisory; it is not independently verified as a packaged exploit outside that advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 04, 2026
Stored cross-site scripting in SiYuan 3.8.10 and 3.8.11-beta.3 allows an attacker who supplies a crafted .sy.zip package to execute script in the kernel origin once the victim imports the package and opens the document's Attributes panel, an outcome that can escalate to command execution on the host. The flaw lives in openFileAttr, which interpolates custom block attribute names into the dialog's innerHTML without escaping, while the .sy.zip import path preserves JSON keys verbatim; SiYuan's own attribute writer rejects such names, so a malicious archive is the only delivery route. Exploitation is not automatic: the victim must import the archive and open the attribute panel, a public proof-of-concept accompanies the vendor advisory, and the issue is rated 8.7 with a this-week priority rather than emergency-grade urgency. No confirmed active exploitation is reported in the available data.
RemediationAI
Update to SiYuan v3.8.11, which is the release that closes the unescaped interpolation in openFileAttr and the only complete fix stated by the vendor; the advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-hg84-q73q-5p33 documents the change. Because the delivery vector is a malicious archive rather than a network-reachable endpoint, the practical interim control is to stop importing .sy.zip packages from untrusted or unsolicited sources and to restrict who can reach /api/import/importSY, with the trade-off that legitimate import and migration workflows stop working for those users until the upgrade lands. Blocking /api/attr/setBlockAttrs is not a useful mitigation, since isValidAttrName already rejects the malicious key names on that path and the archive import is the only confirmed way to introduce them. The related VulnCheck advisory (https://www.vulncheck.com/advisories/siyuan-3.8.10-before-3.8.11-stored-xss-via-imported-sy-zip-attribute-name) can be used to track remediation status.
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 root cause is CWE-79 (improper neutralization of input during web page generation) in the client rendering of block inline attributes. In app/src/menus/commonMenuItem.ts, openFileAttr walks every inline-attribute key containing "custom", concatenates the key minus its custom- prefix into a <span> and the raw key into a <textarea data-name="...">, then assigns the assembled markup to the dialog's innerHTML without escaping either interpolation. The import path does not constrain attribute names: importSY0 (kernel/model/import.go:386) parses each .sy document with siyuan-note/dataparser's ParseJSON, whose Map2IAL (sy.go:66) copies the JSON key verbatim into ret.Root.KramdownIAL, and importSY0 filters only the icon value. A key such as custom-ak<token><img src=... onerror='...'> therefore survives /api/import/importSY and is returned unmodified by /api/attr/getBlockAttrs and /api/block/getDocInfo, the latter stripping only on*-prefixed names via filterHandlerIALAttrs (kernel/model/blockinfo.go:70). The legitimate writer path is safe by construction: isValidAttrName (kernel/model/blockial.go:423,493) permits only [a-z][a-z0-9-]*, and /api/attr/setBlockAttrs returned code -1 against the payload during testing, confirming import is the delivery vector. The editor block DOM also looks clean because Lute's safeIALAttrs (render/renderer.go:728) drops the key at render time, so the payload only fires when the attributes dialog itself is built. Because the handler runs in the kernel origin, injected script sits in the same trust domain as the desktop kernel process, which is what turns a stored XSS into host command execution. The CVSS:4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H) and the independently assessed CVSS:3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) both reflect the requirement for victim interaction rather than any attacker-side complexity.
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:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-delivered via import with no attacker auth (PR:N) but mandatory victim import-and-open interaction (UI:R); unescaped attribute name yields host command execution, so C/I/A High.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SiYuan 3.8.10 before 3.8.11 fails to escape custom block attribute names from imported .sy.zip files in openFileAttr's attribute panel. Attackers can craft an attribute name containing an img onerror handler that runs in the kernel origin when a victim opens the attribute panel, enabling command execution on the host.
Technical POC Analysis
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 stored cross-site scripting vulnerability in SiYuan versions 3.8.10 and 3.8.11-beta.3 allows an attacker to execute arbitrary code on the host system if a user imports a malicious .sy.zip package and opens the document's Attributes panel. This affects organizations using SiYuan for note-taking or knowledge management, as it could lead to full system compromise and data breach. Leadership should prioritize patching or mitigating this risk due to the potential for lateral movement and sensitive data exposure.
No vendor-released patch identified at time of analysis. Interim mitigations include: preventing users from importing .sy.zip packages from untrusted sources, restricting SiYuan's ability to execute child processes, segmenting networks to limit lateral movement, and monitoring for anomalous behavior.
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-144312
NVD
CVE.org
GitHub
Exploit-DB