Response playbooks, investigation guides, and Atomic Red Team tests are Pro-only. Upgrade to unlock the full detection package for CVE-2026-54158.

Upgrade to Pro
CVE-2026-54158 IBM QRadar · QRadar

Detect SiYuan Attribute-View Stored XSS to RCE via genAVValueHTML() (CVE-2026-54158) in IBM QRadar

SiYuan note-taking kernel is vulnerable to a stored Cross-Site Scripting (XSS) flaw in the genAVValueHTML() function used to render attribute-view (database) cell values. An attacker who can write attacker-controlled content into an attribute-view cell (via shared notebook, imported document, sync, or public API) can inject HTML/JavaScript that executes in the context of the SiYuan kernel's embedded webview/Electron renderer. Because the SiYuan kernel process has file-system access and can invoke internal APIs (plugin execution, kernel command endpoints, local file read/write), successful script execution can be escalated to full remote code execution on the host running the SiYuan desktop/server kernel. Affected versions are those prior to the fixed commit 2d5d72223df4 (2026-06-28). CVSS 9.9, CWE-79 (XSS) chained with CWE-1188 (Insecure Default Initialization of Resource) enabling the RCE escalation. A public PoC/advisory exists (GHSA-5xfx-xj4h-5p7r).

MITRE ATT&CK

Tactic
Initial Access Execution Defense Evasion

QRadar Detection Query

IBM QRadar (QRadar)
sql
SELECT DATEFORMAT(devicetime, 'yyyy-MM-dd HH:mm:ss') as EventTime, sourceip, username, "Process Name", "Process Command Line", "File Name"
FROM events
WHERE ("Process Name" ILIKE '%siyuan%' OR "File Name" ILIKE '%.sy')
AND ("Process Command Line" ILIKE '%<script%' OR "Process Command Line" ILIKE '%onerror=%' OR "Process Command Line" ILIKE '%javascript:%' OR "Process Command Line" ILIKE '%eval(%')
LAST 24 HOURS
critical severity medium confidence

Detects SiYuan-related processes or attribute-view file writes containing HTML/JS injection markers consistent with the CVE-2026-54158 stored XSS payload.

Data Sources

Windows Event LogSysmonEndpoint Log Sources

Required Tables

events

False Positives & Tuning

  • Legitimate documentation content with matching keywords
  • QA/dev testing of note rendering

Other platforms for CVE-2026-54158


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Inject stored XSS payload into SiYuan attribute-view cell

    Expected signal: SiYuan kernel API access log entry for setAttributeViewBlockAttr; workspace .sy file modified with the injected payload string

  2. Test 2Render malicious attribute-view in SiYuan desktop client

    Expected signal: Process creation event for SiYuan.exe with workspace argument; possible child process or renderer alert dialog captured via Sysmon

  3. Test 3Escalate stored XSS to local command execution via kernel plugin API

    Expected signal: SiYuan kernel process spawning a child 'touch' process; file creation event for /tmp/siyuan_poc_marker

Unlock playbooks & atomic tests with Pro

Get the full detection package for CVE-2026-54158 — response playbook and atomic red team tests, plus investigation guidance and hunting queries.

df00tech Pro — £29/user/month

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections