Skip to content
OpenAdvisories
Critical · 9.7 CVE-2026-34449 EUVD-2026-17676GHSA-68p4-j234-43mvGO-2026-5171

SiYuan: Cross-Origin RCE via Permissive CORS Policy and JavaScript Snippet Injection

Published Mar 31, 2026 · Updated Apr 1, 2026 · Assigned by GitHub_M

Description

SiYuan is a personal knowledge management system. Prior to version 3.6.2, a malicious website can achieve Remote Code Execution (RCE) on any desktop running SiYuan by exploiting the permissive CORS policy (Access-Control-Allow-Origin: * + Access-Control-Allow-Private-Network: true) to inject a JavaScript snippet via the API. The injected snippet executes in Electron's Node.js context with full OS access the next time the user opens SiYuan's UI. No user interaction is required beyond visiting the malicious website while SiYuan is running. This issue has been patched in version 3.6.2.

Affected products

VendorProductAffectedFixed
siyuan-note siyuan < 3.6.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/siyuan-note/siyuan/kernel < 3.6.2 3.6.2 GHSA-68p4-j234-43mv
Go github.com/siyuan-note/siyuan/kernel all versions — GO-2026-5171

Advisories 1

References