CVE-2026-65605

SiYuan before v3.7.2 Stored XSS to RCE via Attribute View

Published Jul 23, 2026 CVSS 4.0 · 9.4 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A stored cross‑site scripting flaw is present in the Attribute View component of the Siyuan note application. When a value is entered into a template column, the application renders that value as raw HTML using the text/template engine without proper escaping. The only protection applied checks for unclosed tags, so balanced self‑closing tags such as <img> are ignored. An attacker can therefore inject a payload like <img src=x onerror='...'> into the database. When the desktop renderer, which runs with nodeIntegration enabled, loads the page, the payload is inserted into the DOM via innerHTML, executes JavaScript, and gains access to Node APIs through the require function, ultimately allowing arbitrary system command execution. The result is a full compromise of the user’s local machine, affecting confidentiality, integrity, and availability. The provided information does not explicitly state how the malicious content is introduced; it suggests that it occurs when a template column value is stored. The inferred attack vector is that an attacker must be able to write or modify a database entry that will later be viewed by the application. The vulnerability is a classic example of CWE‑79, stored XSS that leads to code execution.

Affected Systems

All installations of the Siyuan note desktop application running version 3.7.1 or earlier are affected. The flaw resides in the Attribute View database rendering logic used by any platform that launches the application with nodeIntegration enabled. Affected vendors and product identifiers include siyuan-note:siyuan.

Risk and Exploitability

The CVSS score of 9.4 indicates a high‑severity flaw capable of full system compromise. The EPSS score of <1% shows that, as of the last assessment, active exploitation is unlikely, but the potential for future exploitation remains because the vulnerability can be abused by anyone who can create or modify a database entry. The risk is amplified by the fact that the flaw requires no special network component or external input; local or formally authorized users are enough. No remote exploitation vector is explicitly described in the available information.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Siyuan note application to version 3.7.2 or newer, which contains the corrected rendering logic for the Attribute View component.
  • After applying the patch, review and cleanse any archived or imported databases to remove rows that contain unescaped HTML fragments such as <img> tags that were added before the update.
  • As a short‑term protective measure, if an immediate upgrade is not possible, isolate the application in a sandboxed or minimally privileged environment and consider disabling nodeIntegration in the renderer process, though this requires code changes and is not a guaranteed fix.

Generated by OpenCVE AI on August 3, 2026 at 21:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared B3log
B3log siyuan
CPEs cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
Vendors & Products B3log
B3log siyuan
Type Values Removed Values Added
First Time appeared Siyuan
Siyuan siyuan
Vendors & Products Siyuan
Siyuan siyuan
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title SiYuan before v3.7.2 Stored XSS to RCE via Attribute View
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 9.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.4, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 17, 2026, 5:54 PM
Reserved
Jul 22, 2026, 10:48 AM
Status
Deferred
Published
Jul 23, 2026, 12:18 PM
Modified
Oct 24, 2026, 1:10 PM