Security mailing lists by PureSourceCode

CVE-2026-39846

CRITICAL 9.0CVSS 3.1

SiYuan: Remote Code Execution in the Electron desktop client via stored XSS in synced table captions

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.

Published
7 Apr 2026
Last modified
20 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-79CWE-94
Also known as
GHSA-phhp-9rm9-6gr2GO-2026-5540
Sources
NVDJSONOSV GHSA-phhp-9rm9-6gr2JSONOSV GO-2026-5540JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 CRITICAL 9.0 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.0 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.0 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD b3log siyuan
cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
< 3.6.4 3.6.4
OSV Go github.com/siyuan-note/siyuan/kernel < 0.0.0-20260407035653-2f416e5253f1 0.0.0-20260407035653-2f416e5253f1

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 7 Apr 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Jun 2026)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 8 Apr 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.