PT-2026-52108 · Siyuan · Siyuan

CVE-2026-54067

·

Published

2026-06-24

·

Updated

2026-07-30

CVSS v3.1

9.9

Critical

VectorAV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions SiYuan versions prior to 3.7.0
Description A flaw exists where a CSS snippet body containing </style> can break out of its surrounding <style> tag during interpolation by the renderSnippet() function via insertAdjacentHTML. This allows the execution of arbitrary JavaScript in the renderer. In Electron desktop builds, the renderer operates with nodeIntegration:true, enabling access to require('child process') and allowing the cross-site scripting (XSS) to escalate to remote code execution (RCE) on the host. Because snippets synchronize via the workspace repository, an attacker with write access to a synced workspace can deploy the payload to all devices that pull the updates. Additionally, this issue bypasses the separation between enabledCSS and enabledJS, allowing JavaScript execution even when enabledJS is disabled.
Recommendations Update to version 3.7.0.

Exploit

Fix

RCE

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-54067
GHSA-MVJR-VV3C-W4QV
GO-2026-5963
OPENSUSE-SU-2026:21483-1

Affected Products

Siyuan