What’s Vulnerable › Vulnerabilities

CVE-2026-74902: SiYuan before v3.7.4 XSS-to-RCE via malicious filename upload

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.

Affected products

How to fix

Upgrade to a fixed version: siyuan-note siyuan 3.7.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-74902 or the next vulnerability affects your stack