Description
SiYuan before v3.7.2 fails to escape the title-img Individual Attribute List value when rendering Gallery and Kanban cover images, allowing stored cross-site scripting via unescaped style attribute interpolation. Attackers with editor permissions can inject onload handlers that execute arbitrary code in the Electron renderer with full Node.js access when victims open affected documents.
Published: 2026-07-27
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SiYuan before version 3.7.2 does not properly escape the title-img Individual Attribute List value when rendering Gallery and Kanban cover images. This allows a stored cross‑site scripting vulnerability, where an attacker with editor permissions can inject an onload handler into the style attribute that runs arbitrary code with full Node.js access when a victim opens the affected document.

Affected Systems

The vulnerability affects the SiYuan note application before version 3.7.2. Users with editor privileges can embed malicious code; any user who later opens the affected document will be exposed.

Risk and Exploitability

The CVSS score of 9.3 marks this flaw as critical. The EPSS score of 0.00296 indicates a very low but non‑zero likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog. Exploit requires the attacker to edit a document with editor permissions, embed a malicious onload handler into the title‑img value, and ensure a victim opens the document in the Electron renderer. Because the attacker gains full Node.js privileges, successful exploitation results in complete loss of confidentiality, integrity, and availability for the affected system.

Generated by OpenCVE AI on August 3, 2026 at 17:13 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SiYuan to version 3.7.2 or later, which removes the unsafe title‑img interpolation by properly escaping the value.
  • Restrict editor permissions to trusted users only, mitigating the possibility of an attacker inserting malicious code.
  • If an upgrade is not immediately possible, remove or sanitize the title‑img attribute from all documents, or use a policy that blocks style attributes in gallery and kanban images to prevent the embedded onload handlers from executing.

Generated by OpenCVE AI on August 3, 2026 at 17:13 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 20:30:00 +0000

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

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


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

Type Values Removed Values Added
Description SiYuan before v3.7.2 fails to escape the title-img Individual Attribute List value when rendering Gallery and Kanban cover images, allowing stored cross-site scripting via unescaped style attribute interpolation. Attackers with editor permissions can inject onload handlers that execute arbitrary code in the Electron renderer with full Node.js access when victims open affected documents.
Title SiYuan before v3.7.2 Stored XSS to RCE via title-img IAL
Weaknesses CWE-79
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/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:32.817Z

Reserved: 2026-07-26T12:22:34.139Z

Link: CVE-2026-66396

cve-icon Vulnrichment

Updated: 2026-07-27T17:27:56.677Z

cve-icon NVD

Status : Deferred

Published: 2026-07-27T16:18:12.220

Modified: 2026-07-28T16:07:15.840

Link: CVE-2026-66396

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T17:15:12Z

Weaknesses
  • CWE-79

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