Description
SiYuan before v3.7.4 contains a cross-site scripting vulnerability in the file upload validation flow that fails to escape filenames before inserting them into HTML via insertAdjacentHTML. Attackers can craft a malicious filename containing script payloads that execute with full OS command access when a user drags, drops, or pastes the file into the editor.
Published: 2026-08-18
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

This vulnerability is a cross‑site scripting flaw that occurs when the application inserts a user‑supplied filename into the editor’s HTML without escaping. An attacker can craft a filename containing a script that runs in the victim’s browser context. Because the script can invoke OS commands through the application’s APIs, the attacker can obtain full command‑line access, effectively executing arbitrary code on the host system.

Affected Systems

The defect affects SiYuan note prior to v3.7.4. Users running any copy of the SiYuan note client before this version are vulnerable to the flaw, regardless of whether the client is running on Windows, macOS, or Linux.

Risk and Exploitability

The CVSS base score of 9.3 indicates a high‑severity vulnerability, and although the EPSS score is not available, the lack of a KEV listing suggests no known widespread exploitation yet. The attack can be carried out by anyone who can deliver a maliciously named file to the target, for example via drag‑and‑drop or copy‑paste into the editor. Successful exploitation would lead to remote code execution with the privileges of the user running the application.

Generated by OpenCVE AI on August 18, 2026 at 12:27 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the SiYuan client to version 3.7.4 or later to apply the vendor’s fix.
  • If a patch cannot be applied immediately, restrict file uploads to names that contain only alphanumeric characters and common file separators, and reject any filename that includes angle brackets or JavaScript‑related syntax.
  • Deploy a web application firewall rule or content‑security‑policy that blocks or sanitizes script payloads in filenames before they reach the editor’s DOM.

Generated by OpenCVE AI on August 18, 2026 at 12:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 18 Aug 2026 11:30:00 +0000

Type Values Removed Values Added
Description SiYuan before v3.7.4 contains a cross-site scripting vulnerability in the file upload validation flow that fails to escape filenames before inserting them into HTML via insertAdjacentHTML. Attackers can craft a malicious filename containing script payloads that execute with full OS command access when a user drags, drops, or pastes the file into the editor.
Title SiYuan before v3.7.4 XSS-to-RCE via malicious filename upload
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': 8.6, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:L/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-08-18T13:36:31.175Z

Reserved: 2026-08-17T10:48:45.738Z

Link: CVE-2026-74902

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-18T12:19:30.370

Modified: 2026-08-18T12:19:30.370

Link: CVE-2026-74902

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T12:30:04Z

Weaknesses
  • CWE-79

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