Live threats

All CVEs / B3log

CVE-2026-33066B3log Siyuan

Medium 5.3

Priority
32
CVSS 4.0
5.3
EPSS
—
Auth required
Yes
Published
Mar 20, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Siyuan.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/siyuan-note/siyuan/kernel < 0.0.0-20260314111550-b382f50e1880 0.0.0-20260314111550-b382f50e1880 go get github.com/siyuan-note/siyuan/kernel@v0.0.0-20260314111550-b382f50e1880
Go github.com/siyuan-note/siyuan/kernel < 0.0.0-20260314111550-b382f50e1880 0.0.0-20260314111550-b382f50e1880 go get github.com/siyuan-note/siyuan/kernel@v0.0.0-20260314111550-b382f50e1880

Per OSV / GitHub Advisories (GHSA-4663-4mpg-879v, GO-2026-4743). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
b3logsiyuan< 3.6.1

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.