Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish crafted Bazaar package with malicious iconURL
-
DeliveryVictim opens SiYuan Bazaar marketplace panel
-
ExploitMalicious iconURL inserted unescaped into img src attribute
-
Executiononerror event handler fires JavaScript in authenticated SiYuan origin
-
ImpactAttacker script makes authenticated API calls and manipulates application state
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 | The attacker must be able to publish a package to the SiYuan Bazaar community marketplace with a crafted iconURL value - this likely requires a GitHub account or equivalent Bazaar publishing credential, and is subject to any platform-level moderation in place. The victim must actively open the Bazaar marketplace panel within their SiYuan application and have the malicious package card rendered in the listing view (UI:A / AT:P). No special configuration is required on the victim's side beyond a default SiYuan installation with Bazaar access enabled, which is standard. Exploitation is limited by: (1) the attacker's ability to get a malicious package listed without being moderated; (2) the victim choosing to browse Bazaar; (3) the malicious package appearing in the rendered card view. The CVSS PR:N metric applies to the target system - no authentication to the victim's SiYuan instance is needed by the attacker. |
| Impact | The CVSS 4.0 score of 7.4 with AT:P and UI:A correctly captures the key exploitability constraints: the attacker must successfully publish a malicious package to the Bazaar marketplace, and the victim must actively navigate to and render Bazaar listings - neither step is passive. The VC:H/VI:H impact ratings are justified because execution in the authenticated SiYuan origin yields full API access and session-level control, even though the availability dimension is unaffected (VA:N). No KEV listing and no public exploit code exist at time of analysis, reducing immediate urgency for most deployments. The EPSS score is not provided in the available data, so exploitation probability cannot be precisely quantified. Practically, even a mid-sized municipal IT team in kielce deploying SiYuan for collaborative knowledge management should treat this as a meaningful patching priority if their users routinely browse Bazaar, since the payload persists silently until the package is removed or the platform moderates the listing. The niche deployment footprint of SiYuan constrains aggregate exposure, but for active Bazaar users the personal-data and session-integrity risk is real. There is no CVSS vector conflict - the network attack vector and user-interaction requirement are consistent with the described Bazaar-marketplace delivery mechanism. |
| Exploit ScenarioDerived | An attacker registers a SiYuan Bazaar package (theme, plugin, or icon set) and sets the package's iconURL field to a value such as 'x" onerror="fetch('/api/transactions',{method:'POST',body:JSON.stringify([...])})' before publishing it to the community marketplace. When an authenticated SiYuan user opens the Bazaar panel and the malicious package card is rendered, the browser fires the onerror handler in the user's authenticated SiYuan origin, executing the attacker's JavaScript and enabling exfiltration of session data or arbitrary modification of notes and application state. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 09, 2026
Stored cross-site scripting in SiYuan's Bazaar marketplace component (all versions before 3.8.2) allows an attacker to publish a package with a crafted iconURL containing JavaScript event handlers that execute in the authenticated user's SiYuan origin when Bazaar listing cards are rendered. The root flaw is unsanitized insertion of iconURL package metadata directly into HTML img src attributes, enabling injected event handlers such as onerror to fire arbitrary JavaScript within the victim's session. Once triggered, the injected script can make authenticated API requests and manipulate application state on behalf of the victim. No public exploit code or active exploitation has been identified at time of analysis.
RemediationAI
Upgrade to SiYuan v3.8.2 or any later release, which resolves the stored XSS by properly escaping or sanitizing the iconURL metadata field before inserting it into HTML attributes. The vendor-confirmed fix is documented in the GitHub security advisory GHSA-rvcf-q4h8-w6c9 at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-rvcf-q4h8-w6c9. If immediate upgrade is operationally blocked, the most effective compensating control is to instruct users to avoid opening the Bazaar marketplace panel until the patch is applied, since the XSS payload only triggers when package cards are rendered; this has no impact on core note-taking functionality. Attempting to filter or block Bazaar metadata at the network layer would be operationally complex and is not a reliable substitute for the vendor patch.
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 (CPE: cpe:2.3:a:siyuan-note:siyuan:*:*:*:*:*:*:*:*, versions before 3.8.2) is an open-source personal knowledge management application that includes a built-in 'Bazaar' community marketplace for distributing themes, plugins, templates, and icons. The Bazaar rendering engine constructs package card HTML by directly interpolating the iconURL field from package metadata into img src attributes without HTML-entity encoding or URL sanitization, meeting the definition of CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-site Scripting). Because SiYuan operates as a local web application bound to an authenticated browser origin, any JavaScript that executes within Bazaar card rendering runs in that authenticated context and has full access to SiYuan's API surface, DOM, and session state. This is a stored variant because the malicious payload lives in published Bazaar package metadata and fires for every user who renders the affected card, without requiring repeated attacker interaction.
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:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Attacker publishes via remote Bazaar; victim must view listings (UI:R); JavaScript executes in authenticated SiYuan origin granting full API access (S:C, C:H/I:H); no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SiYuan before v3.8.2 contains a stored cross-site scripting vulnerability in Bazaar package cards where the iconURL metadata is inserted directly into HTML img src attributes without escaping. Attackers can inject malicious URLs with event handlers that execute JavaScript in the authenticated SiYuan origin when users view Bazaar listings, enabling API requests and application state manipulation.
Technical POC Analysis
Stored XSS (CWE-79) in the Bazaar package-card renderer.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
SiYuan versions before 3.8.2 contain a stored cross-site scripting vulnerability in the Bazaar marketplace component that allows attackers to inject malicious JavaScript into package metadata, which executes in the authenticated sessions of users browsing the marketplace. Exploitation could enable attackers to steal session tokens, manipulate user data, or perform unauthorized actions within SiYuan on behalf of compromised users. Organizations using SiYuan for knowledge management or team collaboration should prioritize upgrading to address this risk.
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 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-74838
GHSA-rv6c-xvcj-4qwg
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB