Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-54067: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan

0
Critical
VulnerabilityCVE-2026-54067cvecve-2026-54067cwe-79cwe-1188
Published: 06/24/2026 (06/24/2026, 21:14:38 UTC)
Source: CVE Database V5
Vendor/Project: siyuan-note
Product: siyuan

Description

A critical cross-site scripting (XSS) vulnerability exists in SiYuan, an open-source personal knowledge management system, prior to version 3.7.0. The issue arises when CSS snippets containing </style> break out of their style tags during rendering, allowing arbitrary JavaScript execution. On Electron desktop builds with nodeIntegration enabled, this XSS can escalate to remote code execution (RCE) on the host. The vulnerability bypasses user settings that disable JavaScript execution, as the CSS path still runs injected scripts. An attacker with write access to any synced workspace can plant a payload that executes on all devices pulling that workspace. This vulnerability is fixed in version 3.7.0.

CVSS v3.1

Score 9.9critical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Affected software

GitHub Actionsmore threats →ai
siyuan-note/siyuan
pkg:github/siyuan-note/siyuan
Affected versions
<3.7.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/24/2026, 22:02:41 UTC

Technical Analysis

SiYuan versions before 3.7.0 improperly neutralize input in CSS snippets during web page generation. Specifically, a CSS snippet body containing a closing </style> tag breaks out of its surrounding <style> element when rendered via insertAdjacentHTML in the renderSnippet() function. This allows injection of arbitrary JavaScript. On Electron desktop builds where nodeIntegration is true, the injected JavaScript can access Node.js modules such as child_process, enabling remote code execution on the host. The vulnerability bypasses the user's enabledJS setting, which is intended to disable JavaScript execution, because the CSS injection path executes scripts regardless. Attackers with write access to any synced workspace can plant malicious payloads that execute on every device syncing that workspace. The issue is resolved in SiYuan version 3.7.0.

Potential Impact

Successful exploitation allows an attacker with write access to a synced workspace to execute arbitrary JavaScript code in the renderer context of SiYuan. On Electron desktop builds with nodeIntegration enabled, this escalates to remote code execution on the host system, potentially compromising confidentiality, integrity, and availability. The vulnerability bypasses user security settings intended to disable JavaScript execution, increasing the risk of exploitation. This can lead to full system compromise on affected desktop clients.

Mitigation Recommendations

This vulnerability is fixed in SiYuan version 3.7.0. Users and administrators should upgrade to version 3.7.0 or later to remediate the issue. No official patch or temporary fix is indicated beyond upgrading. Since this is not a cloud service, remediation depends on applying the fixed version. Until upgraded, restrict write access to synced workspaces to trusted users only to reduce risk.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-11T18:24:35.097Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a3c501e4853345fc1e45c3f

Added to database: 06/24/2026, 21:46:06 UTC

Last enriched: 06/24/2026, 22:02:41 UTC

Last updated: 06/25/2026, 00:09:58 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses