CVE-2026-59855: CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in siyuan-note siyuan
SiYuan, an open-source personal knowledge management system, has a high-severity cross-site scripting (XSS) vulnerability identified as CVE-2026-59855. The vulnerability exists in versions prior to 3.7.1 where the Asset.render function unsafely interpolates an unsanitized path value into HTML, allowing injection of malicious JavaScript. This can lead to execution of arbitrary code within the Electron renderer context. The issue is fixed in versions 3.7.1-alpha.2 and 3.7.1.
AI Analysis
Technical Summary
CVE-2026-59855 is a CWE-80 (Improper Neutralization of Script-Related HTML Tags) vulnerability in the SiYuan note-taking application. Specifically, before version 3.7.1, the Asset.render function in app/src/asset/index.ts inserts the unsanitized this.path value directly into innerHTML. An attacker can craft an asset link containing a double quote to break out of the src attribute, inject an event handler, and execute JavaScript code. This JavaScript can run OS commands within the Electron renderer process, leading to potential remote code execution. The vulnerability is addressed in versions 3.7.1-alpha.2 and 3.7.1.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript code in the Electron renderer process, which can escalate to running OS commands. This compromises the confidentiality, integrity, and availability of the affected system. The CVSS 4.0 base score is 8.6 (high), reflecting network attack vector, no privileges required, user interaction needed, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade SiYuan to version 3.7.1-alpha.2 or 3.7.1 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is documented. Patch status is not explicitly confirmed in the vendor advisory, but the fix is stated in the description. Users should verify they are running a fixed version.
CVE-2026-59855: CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in siyuan-note siyuan
Description
SiYuan, an open-source personal knowledge management system, has a high-severity cross-site scripting (XSS) vulnerability identified as CVE-2026-59855. The vulnerability exists in versions prior to 3.7.1 where the Asset.render function unsafely interpolates an unsanitized path value into HTML, allowing injection of malicious JavaScript. This can lead to execution of arbitrary code within the Electron renderer context. The issue is fixed in versions 3.7.1-alpha.2 and 3.7.1.
CVSS v4.0
Score 8.6high
Affected software
pkg:github/siyuan-note/siyuanRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-59855 is a CWE-80 (Improper Neutralization of Script-Related HTML Tags) vulnerability in the SiYuan note-taking application. Specifically, before version 3.7.1, the Asset.render function in app/src/asset/index.ts inserts the unsanitized this.path value directly into innerHTML. An attacker can craft an asset link containing a double quote to break out of the src attribute, inject an event handler, and execute JavaScript code. This JavaScript can run OS commands within the Electron renderer process, leading to potential remote code execution. The vulnerability is addressed in versions 3.7.1-alpha.2 and 3.7.1.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript code in the Electron renderer process, which can escalate to running OS commands. This compromises the confidentiality, integrity, and availability of the affected system. The CVSS 4.0 base score is 8.6 (high), reflecting network attack vector, no privileges required, user interaction needed, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade SiYuan to version 3.7.1-alpha.2 or 3.7.1 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is documented. Patch status is not explicitly confirmed in the vendor advisory, but the fix is stated in the description. Users should verify they are running a fixed version.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-07T15:41:53.606Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a50252a68715ace43310cf5
Added to database: 07/09/2026, 22:48:10 UTC
Last enriched: 07/09/2026, 23:02:25 UTC
Last updated: 07/09/2026, 23:36:53 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.