Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-33066 EUVD-2026-13628GHSA-4663-4mpg-879vGO-2026-4743

SiYuan has Stored XSS to RCE via Unsanitized Bazaar README Rendering

Published Mar 20, 2026 · Updated Mar 20, 2026 · Assigned by GitHub_M

Description

SiYuan is a personal knowledge management system. In versions 3.6.0 and below, the backend renderREADME function uses lute.New() without calling SetSanitize(true), allowing raw HTML embedded in Markdown to pass through unmodified. The frontend then assigns the rendered HTML to innerHTML without any additional sanitization. A malicious package author can embed arbitrary JavaScript in their README that executes when a user clicks to view the package details. Because SiYuan's Electron configuration enables nodeIntegration: true with contextIsolation: false, this XSS escalates directly to full Remote Code Execution. The issue was patched in version 3.6.1.

Affected products

VendorProductAffectedFixed
siyuan-note siyuan < 3.6.1 —

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
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20260326T203309-150000.1.155.2 SUSE-SU-2026:1135-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/siyuan-note/siyuan/kernel < 0.0.0-20260314111550-b382f50e1880 0.0.0-20260314111550-b382f50e1880 GHSA-4663-4mpg-879v

Advisories 2

References