Security mailing lists by PureSourceCode

CVE-2026-54067

CRITICAL 9.9CVSS 3.1

SiYuan: Stored XSS to RCE via CSS-snippet <style> breakout in renderSnippet()

SiYuan is an open-source personal knowledge management system. Prior to 3.7.0, CSS snippet body containing </style> breaks out of its surrounding <style> tag when renderSnippet() interpolates it via insertAdjacentHTML. A payload like runs arbitrary JavaScript in the renderer. On Electron desktop builds the renderer runs with nodeIntegration:true, so require('child_process') is reachable from the injected handler and the XSS chains to host RCE. Snippets sync via the workspace repository, so an attacker with write access to any synced workspace plants the payload once and it fires on every device that pulls. The bug also bypasses the user's enabledCSS / enabledJS separation. A user who turned enabledJS off was making a deliberate call not to run untrusted JavaScript; the CSS path runs it anyway. This vulnerability is fixed in 3.7.0.

Published
24 Jun 2026
Last modified
25 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Deferred
Weakness
CWE-1188CWE-79
Also known as
GHSA-mvjr-vv3c-w4qvGO-2026-5963
Sources
NVDJSONOSV GHSA-mvjr-vv3c-w4qvJSONOSV GO-2026-5963JSON

Scores

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

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go github.com/siyuan-note/siyuan/kernel < 0.0.0-20260628153353-2d5d72223df4 0.0.0-20260628153353-2d5d72223df4

References

History

  • 25 Nov 2026 21:03 UTC · NVD: first stored (published 24 Jun 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Jul 2026)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 10 Jul 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.