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.
Published: 2026-07-23
Score: 9.4 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Tue, 28 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
First Time appeared B3log
B3log siyuan
CPEs cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
Vendors & Products B3log
B3log siyuan

Mon, 27 Jul 2026 15:45:00 +0000

Type Values Removed Values Added
First Time appeared Siyuan
Siyuan siyuan
Vendors & Products Siyuan
Siyuan siyuan

Fri, 24 Jul 2026 22:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 23 Jul 2026 12:15:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:06:08.238Z

Reserved: 2026-07-22T10:48:36.000Z

Link: CVE-2026-65605

cve-icon Vulnrichment

Updated: 2026-07-23T15:23:42.986Z

cve-icon NVD

Status : Deferred

Published: 2026-07-23T12:18:47.357

Modified: 2026-07-23T16:17:52.793

Link: CVE-2026-65605

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T21:45:03Z

Weaknesses
  • CWE-79

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