Description
SiYuan before v3.7.4 stores attribute-view field names without HTML escaping and interpolates them directly into option elements via innerHTML in the sort menu. Attackers can inject markup by renaming a database field to execute arbitrary JavaScript when users open the sort menu, with Node integration enabled in the desktop client enabling code execution.
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 3.7.4 store attribute‑view field names without escaping and inject them directly into option elements using innerHTML. An attacker can craft a malicious field name that contains markup or script, which is then executed when a user opens the sort menu in the desktop client with Node integration enabled. This flaw is a classic stored cross‑site scripting vulnerability (CWE‑79) that, in this context, allows arbitrary JavaScript execution and therefore full control over the affected application and potentially the underlying operating system.

Affected Systems

The affected product is SiYuan (siyuan‑note) before version 3.7.4. No specific sub‑versions were listed beyond the major cutoff. Users running any unreleased or unsupported custom builds that predate 3.7.4 are also at risk.

Risk and Exploitability

The CVSS score of 9.4 marks the vulnerability as critical. While no EPSS score is available, the lack of a KEV listing does not diminish its inherent risk. The attack requires the attacker to persuade or trick a user into opening the sort menu after the malicious field name has been stored. Node integration in the desktop client grants the injected script full access to the underlying system, turning this XSS into a potential remote code execution scenario. The exploitation path is user interactive but straightforward for an attacker who can influence field names in the database.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SiYuan to version 3.7.4 or later.
  • If upgrading immediately is not possible, disable Node integration in the desktop client configuration to prevent the injected script from accessing native system APIs.
  • Avoid renaming database fields to values that could contain markup; use simple alphanumeric field names and sanitise any user input that may be stored as a field name.

Generated by OpenCVE AI on August 15, 2026 at 23:22 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 stores attribute-view field names without HTML escaping and interpolates them directly into option elements via innerHTML in the sort menu. Attackers can inject markup by renaming a database field to execute arbitrary JavaScript when users open the sort menu, with Node integration enabled in the desktop client enabling code execution.
Title SiYuan before v3.7.4 Stored XSS via Attribute-View Field Names
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:52.569Z

Reserved: 2026-08-10T19:10:18.100Z

Link: CVE-2026-73052

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-73052

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