Description
SiYuan before v3.7.4 fails to properly escape database menu metadata in HTML interpolation, allowing stored values to execute script when users open group, view, or field-edit menus. Attackers can inject markup through field descriptions or names that close containing elements and execute arbitrary code via event handlers, reaching Node built-ins due to Electron's insecure configuration.
Published: 2026-08-15
Score: 9.4 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SiYuan versions prior to v3.7.4 improperly escape menu metadata when rendering HTML, allowing stored values to execute scripts. An attacker can inject markup in field descriptions or names that close existing elements and attach arbitrary JavaScript to event handlers. The Electron configuration used by SiYuan permits the renderer to access Node.js built‑ins, so the malicious code can run with the full privileges of the host process, resulting in remote code execution over the local machine.

Affected Systems

The vulnerability affects the SiYuan note-taking application from Siyuan Note. All releases before v3.7.4 are impacted; the fix is included in v3.7.4 and later.

Risk and Exploitability

The CVSS score is 9.4, indicating a high‑severity flaw. EPSS data is not available, and the flaw is not listed in the KEV catalog, so precise exploitation probabilities are unknown. The flaw requires the attacker to supply malicious menu metadata, which is later rendered when a user opens group, view, or edit menus. Because the Electron instance is configured insecurely, the injected script gains access to Node.js, allowing arbitrary code execution. The likely attack vector is a locally interactive attack where a compromised or malicious user can insert malicious metadata that later triggers when any user opens the affected menus.

Generated by OpenCVE AI on August 15, 2026 at 23:25 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to SiYuan v3.7.4 or newer to apply the vendor patch
  • If an immediate upgrade is not possible, sanitize all menu metadata: remove or HTML‑encode any characters that can form tags and strip script‑related attributes before storage
  • Configure the Electron instance to disable Node integration by setting nodeIntegration to false and enforcing contextIsolation, thereby preventing injected code from accessing Node.js APIs

Generated by OpenCVE AI on August 15, 2026 at 23:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 15 Aug 2026 22:00:00 +0000

Type Values Removed Values Added
Description SiYuan before v3.7.4 fails to properly escape database menu metadata in HTML interpolation, allowing stored values to execute script when users open group, view, or field-edit menus. Attackers can inject markup through field descriptions or names that close containing elements and execute arbitrary code via event handlers, reaching Node built-ins due to Electron's insecure configuration.
Title SiYuan before v3.7.4 Remote Code Execution via Menu Metadata
First Time appeared B3log
B3log siyuan
Weaknesses CWE-79
CPEs cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
Vendors & Products B3log
B3log siyuan
References
Metrics cvssV3_1

{'score': 9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/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:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-15T21:44:47.828Z

Reserved: 2026-08-10T19:06:03.365Z

Link: CVE-2026-73042

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T22:16:54.030

Modified: 2026-08-15T22:16:54.030

Link: CVE-2026-73042

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-15T23:30:16Z

Weaknesses
  • CWE-79

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