Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish malicious bazaar package with scripted name
-
DeliveryVictim installs then triggers uninstall
-
ExploitconfirmDialog() writes name to innerHTML
-
ExecutionPayload executes in SiYuan session
-
ImpactSteal notes or session context
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 control a package name in SiYuan's bazaar marketplace (or a notebook name), matching PR:L - a submission/publishing capability rather than anonymous access. The payload only executes when the victim performs a specific triggering action: uninstalling the malicious bazaar package, or unlocking an encrypted notebook whose name carries the payload (UI:P/passive interaction). Limiting factors: the victim must actually install then uninstall the package (or open the crafted notebook), the target must be running SiYuan before v3.8.1, and the attacker needs a route to place content into the bazaar name or notebook name field. There is no default-configuration, zero-interaction remote path. |
| Impact | The input assigns CVSS 4.0 base 9.3 (AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L). The network vector and low complexity are consistent with delivering a payload through a public bazaar package, but two factors temper real-world severity: PR:L means the attacker must be able to publish/submit a package (some privilege or account), and UI:P means the payload only fires on a specific victim action (uninstalling the package or unlocking an encrypted notebook) - it is not click-free drive-by. No EPSS score, KEV listing, or POC was provided, so there is no signal of automated or in-the-wild exploitation; the high score is driven by potential impact rather than demonstrated ease. The SC:H/SI:H subsequent-system ratings in the supplied vector appear generous for browser-context XSS in a note app and should be treated as the vendor/reporter's view rather than independently confirmed. Net: a genuine high-severity XSS worth prompt patching for SiYuan users, but not an emergency mass-exploitation scenario on current evidence. |
| Exploit ScenarioDerived | An attacker publishes a bazaar package whose name field contains an XSS payload (e.g., an img/script construct). A SiYuan user installs it and later chooses to uninstall it; confirmDialog() renders the crafted name via innerHTML, executing the attacker's script in the user's SiYuan session to exfiltrate notes, tokens, or manipulate the workspace. No public POC was provided, and the attack depends on the victim performing the uninstall (or unlocking a maliciously named encrypted notebook). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAI
Stored cross-site scripting in SiYuan before v3.8.1 lets a low-privileged attacker persist HTML/script payloads in bazaar package names and notebook names, which the confirmDialog() function interpolates unescaped into innerHTML. The script executes in a victim's browser session when they uninstall a malicious package or unlock an encrypted notebook, enabling session-context takeover of the note-taking application. No public exploit identified at time of analysis and no active exploitation is recorded.
RemediationAI
Vendor-released patch: upgrade to SiYuan v3.8.1 or later, which is the primary and complete fix per advisory GHSA-hvwp-43j9-4xgf (https://github.com/siyuan-note/siyuan/security/advisories/GHSA-hvwp-43j9-4xgf). Until upgrading, reduce exposure by avoiding installation of untrusted bazaar packages and by not uninstalling packages whose names contain unexpected HTML/markup characters; treat notebook names from shared or imported workspaces with the same caution before unlocking encrypted notebooks. These are behavioral mitigations only - they do not remove the vulnerable innerHTML sink, so patching to v3.8.1 remains necessary. The trade-off of restricting bazaar usage is loss of community plugin/theme functionality, which is acceptable as a temporary measure.
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
SiYuan is an open-source, self-hosted personal knowledge-management and note-taking application (vendor: siyuan-note). The flaw is a classic CWE-79 stored XSS: attacker-controlled strings (a bazaar community-package name and a notebook name) are written directly into the DOM via innerHTML inside the confirmDialog() helper without HTML-entity encoding or sanitization. Because SiYuan's UI is a web front end (rendered in a browser or an Electron/webview shell), any string treated as trusted markup becomes executable script. The bazaar is SiYuan's third-party marketplace for plugins/themes/templates, so package metadata is a realistic untrusted input channel that reaches the vulnerable sink at uninstall time.
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:L/UI:P/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L
Attacker needs a bazaar publishing account (PR:L) and victim must trigger uninstall/unlock (UI:R); XSS crossing into the app's browser context justifies S:C with high C/I and low A.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SiYuan before v3.8.1 contains a stored cross-site scripting vulnerability in confirmDialog() where unescaped package names and notebook names are interpolated directly into innerHTML assignments. Attackers can submit malicious bazaar packages with HTML/script payloads in the name field that execute in users' browsers when uninstalling packages or unlocking encrypted notebooks.
Technical POC Analysis
CWE-79 (secondary CWE-116).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
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 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
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c
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-68239
GHSA-pxmq-4h62-hcr8
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB