CVE-2026-65605: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan
SiYuan before v3.7.2 contains a stored cross-site scripting vulnerability in Attribute View (database) cell rendering. A Template column value is rendered as HTML via text/template without auto-escaping, and EscapeHTML is only applied when HasUnclosedHtmlTag returns true; because balanced self-closing tags such as <img> are skipped by that check, a payload like <img src=x onerror=...> is stored unescaped and later inserted into the page via innerHTML, executing when the database is viewed. Because the desktop renderer runs with nodeIntegration enabled, the injected script can reach require and escalate to arbitrary command execution.
AI Analysis
Technical Summary
CVE-2026-65605 is a stored cross-site scripting vulnerability in SiYuan note-taking software prior to version 3.7.2. The issue occurs in the Attribute View database cell rendering where a Template column value is rendered as HTML via text/template without proper auto-escaping. The EscapeHTML function is conditionally applied only when unclosed HTML tags are detected, but balanced self-closing tags like <img> bypass this check. An attacker can store a payload such as <img src=x onerror=...> which is inserted into the page via innerHTML and executed when the database is viewed. Because the desktop renderer has nodeIntegration enabled, the injected script can access Node.js require and escalate to arbitrary command execution on the user’s system.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the SiYuan application, leading to remote code execution on the host system due to nodeIntegration being enabled in the desktop renderer. This can result in full system compromise of the affected host running vulnerable versions of SiYuan.
Mitigation Recommendations
A fixed version 3.7.2 or later addresses this vulnerability. Users should upgrade to SiYuan version 3.7.2 or newer to remediate this issue. Patch status is not explicitly confirmed in the provided data, but the version boundary indicates the fix is included starting with 3.7.2. No alternative mitigations are specified.
CVE-2026-65605: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan
Description
SiYuan before v3.7.2 contains a stored cross-site scripting vulnerability in Attribute View (database) cell rendering. A Template column value is rendered as HTML via text/template without auto-escaping, and EscapeHTML is only applied when HasUnclosedHtmlTag returns true; because balanced self-closing tags such as <img> are skipped by that check, a payload like <img src=x onerror=...> is stored unescaped and later inserted into the page via innerHTML, executing when the database is viewed. Because the desktop renderer runs with nodeIntegration enabled, the injected script can reach require and escalate to arbitrary command execution.
CVSS v4.0
Score 9.4critical
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-65605 is a stored cross-site scripting vulnerability in SiYuan note-taking software prior to version 3.7.2. The issue occurs in the Attribute View database cell rendering where a Template column value is rendered as HTML via text/template without proper auto-escaping. The EscapeHTML function is conditionally applied only when unclosed HTML tags are detected, but balanced self-closing tags like <img> bypass this check. An attacker can store a payload such as <img src=x onerror=...> which is inserted into the page via innerHTML and executed when the database is viewed. Because the desktop renderer has nodeIntegration enabled, the injected script can access Node.js require and escalate to arbitrary command execution on the user’s system.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the SiYuan application, leading to remote code execution on the host system due to nodeIntegration being enabled in the desktop renderer. This can result in full system compromise of the affected host running vulnerable versions of SiYuan.
Mitigation Recommendations
A fixed version 3.7.2 or later addresses this vulnerability. Users should upgrade to SiYuan version 3.7.2 or newer to remediate this issue. Patch status is not explicitly confirmed in the provided data, but the version boundary indicates the fix is included starting with 3.7.2. No alternative mitigations are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-22T10:48:36.000Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a6207979c2644c7f80b649d
Added to database: 07/23/2026, 12:22:47 UTC
Last enriched: 07/30/2026, 22:26:26 UTC
Last updated: 09/06/2026, 22:52:13 UTC
Views: 106
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.