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 before version 3.7.2. The issue occurs in the Attribute View's database cell rendering where a Template column value is rendered as HTML using text/template without sufficient escaping. The EscapeHTML function is conditionally applied only when unclosed HTML tags are detected, but balanced self-closing tags like <img> are skipped, allowing payloads such as <img src=x onerror=...> to be stored unescaped. When the database is viewed, this payload is inserted into the page via innerHTML, triggering script execution. Because the desktop renderer enables nodeIntegration, 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 code in the context of the SiYuan desktop application. Due to nodeIntegration being enabled, this can escalate to arbitrary command execution on the host machine, posing a critical security risk including full system compromise.
Mitigation Recommendations
A fix is available in SiYuan version 3.7.2 and later. Users should upgrade to version 3.7.2 or newer to remediate this vulnerability. Patch status is not explicitly confirmed in the vendor advisory, but the affected versions are stated as prior to 3.7.2, indicating the issue is resolved in 3.7.2. No additional mitigation steps are provided.
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 before version 3.7.2. The issue occurs in the Attribute View's database cell rendering where a Template column value is rendered as HTML using text/template without sufficient escaping. The EscapeHTML function is conditionally applied only when unclosed HTML tags are detected, but balanced self-closing tags like <img> are skipped, allowing payloads such as <img src=x onerror=...> to be stored unescaped. When the database is viewed, this payload is inserted into the page via innerHTML, triggering script execution. Because the desktop renderer enables nodeIntegration, 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 code in the context of the SiYuan desktop application. Due to nodeIntegration being enabled, this can escalate to arbitrary command execution on the host machine, posing a critical security risk including full system compromise.
Mitigation Recommendations
A fix is available in SiYuan version 3.7.2 and later. Users should upgrade to version 3.7.2 or newer to remediate this vulnerability. Patch status is not explicitly confirmed in the vendor advisory, but the affected versions are stated as prior to 3.7.2, indicating the issue is resolved in 3.7.2. No additional mitigation steps are provided.
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/23/2026, 12:37:40 UTC
Last updated: 07/23/2026, 21:19:41 UTC
Views: 31
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.