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-54158: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan

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

Description

SiYuan, an open-source personal knowledge management system, has a critical cross-site scripting (XSS) vulnerability in versions prior to 3.7.0. The vulnerability occurs in the attribute-view cell renderer which improperly interpolates raw cell content in certain branches, allowing malicious input to execute arbitrary JavaScript. On the Electron desktop client with nodeIntegration enabled, this XSS can escalate to remote code execution (RCE). The issue 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:13 UTC

Technical Analysis

CVE-2026-54158 is a critical vulnerability in SiYuan versions before 3.7.0 where the attribute-view cell renderer (genAVValueHTML) interpolates unescaped cell content in four branches: text, url, phone, and mAsset. Malicious input such as crafted HTML tags with event handlers can break out of the intended context and execute arbitrary JavaScript when a user opens the block-attribute panel. Because the Electron desktop client runs with nodeIntegration:true, this XSS can chain to host remote code execution via Node.js child_process. The malicious payload persists in the workspace files without escaping, allowing it to trigger on every device syncing the workspace. The vulnerability is addressed by proper escaping in version 3.7.0.

Potential Impact

Successful exploitation allows an attacker with write access to a synced workspace to inject malicious code that executes arbitrary JavaScript in the context of the renderer. On the Electron desktop client, this can escalate to remote code execution on the host system. This compromises confidentiality, integrity, and availability of the affected system. The vulnerability has a CVSS score of 9.9 (critical). No known exploits in the wild have been reported.

Mitigation Recommendations

This vulnerability is fixed in SiYuan version 3.7.0. Users should upgrade to version 3.7.0 or later to remediate this issue. Since no official patch or temporary fix is indicated beyond the version update, upgrading is the recommended action.

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-11T21:46:52.379Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a3c501e4853345fc1e45c4b

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

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

Last updated: 06/25/2026, 00:00:52 UTC

Views: 7

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