CVE-2026-73042

SiYuan before v3.7.4 Remote Code Execution via Menu Metadata

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

Analysis

AI-generated

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

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Siyuan
Siyuan siyuan
Vendors & Products Siyuan
Siyuan siyuan
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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 17, 2026, 4:06 PM
Reserved
Aug 10, 2026, 7:06 PM
Status
Deferred
Published
Aug 15, 2026, 10:16 PM
Modified
Aug 26, 2026, 4:57 PM