Live threats

All CVEs / B3log

CVE-2026-39846B3log Siyuan

Critical 9.0

Priority
54
CVSS 3.1
9.0
EPSS
—
Auth required
Yes
Published
Apr 7, 2026
Updated
Jul 20, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79, CWE-94
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

What happens

SiYuan is a personal knowledge management system. Prior to 3.6.4, a malicious note synced to another user can trigger remote code execution in the SiYuan Electron desktop client. The root cause is that table caption content is stored without safe escaping and later unescaped into rendered HTML, creating a stored XSS sink. Because the desktop renderer runs with nodeIntegration enabled and contextIsolation disabled, attacker-controlled JavaScript executes with access to Node.js APIs. In practice, an attacker can import a crafted note into a synced workspace, wait for the victim to sync, and achieve code execution when the victim opens the note. This vulnerability is fixed in 3.6.4.

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-20260407035653-2f416e5253f1 0.0.0-20260407035653-2f416e5253f1 go get github.com/siyuan-note/siyuan/kernel@v0.0.0-20260407035653-2f416e5253f1
Go github.com/siyuan-note/siyuan/kernel < 0.0.0-20260407035653-2f416e5253f1 0.0.0-20260407035653-2f416e5253f1 go get github.com/siyuan-note/siyuan/kernel@v0.0.0-20260407035653-2f416e5253f1

Per OSV / GitHub Advisories (GHSA-phhp-9rm9-6gr2, GO-2026-5540). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
b3logsiyuan< 3.6.4

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.