
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-33067 is a Stored XSS to Remote Code Execution vulnerability in SiYuan's Bazaar (community marketplace) that allows a malicious package author to inject arbitrary HTML/JavaScript into package metadata fields (displayName, description), which executes automatically when any desktop user browses the marketplace. Discovered and reported by researcher 0xkakash1, it was published on March 17, 2026, and affects SiYuan versions ≤ 3.5.9 across Windows, macOS, and Linux. The patched version is v3.6.1. It carries a CVSS v3.1 base score of 9.0 (Critical) per Feedly intelligence, while the advisory itself cites 9.6 (Critical) (GitHub Advisory, SiYuan Advisory).
The root cause is CWE-79 (Stored XSS): in app/src/config/bazaar.ts (lines 275–277), package metadata fields (preferredName, preferredDesc) are injected directly into HTML template literals without HTML escaping — notably, the title attribute uses escapeAttr() but the rendered text content does not, indicating partial awareness of the risk. The critical escalation factor is SiYuan's Electron configuration in app/electron/main.js (lines 422–426), which sets nodeIntegration: true and contextIsolation: false, granting any JavaScript executing in the renderer process direct access to Node.js APIs such as require('child_process'), require('fs'), and require('os'). An attacker with a low-privilege account (sufficient to submit a package to the Bazaar) can craft a plugin.json manifest with an XSS payload (e.g., <img src=x onerror="require('child_process').exec('calc.exe')">) in the displayName field; the payload fires automatically on page load with no further user interaction required (GitHub Advisory, SiYuan Advisory).
Successful exploitation results in full Remote Code Execution on the victim's operating system with the privileges of the SiYuan application user, affecting all platforms (Windows, macOS, Linux). Attackers can steal API tokens, session cookies, SSH keys, browser credentials, and arbitrary files, and can install persistent backdoors, scheduled tasks, or ransomware. Because the attack vector is the official SiYuan Bazaar marketplace, it constitutes a supply-chain attack capable of targeting the entire SiYuan desktop user community simultaneously — any user who opens the Bazaar tab is compromised without any further interaction (GitHub Advisory, SiYuan Advisory).
A detailed proof-of-concept with step-by-step exploitation instructions and specific JSON payloads is publicly documented in the GitHub Security Advisory, including escalation paths for reverse shell, API token exfiltration, and Windows persistence (SiYuan Advisory). Feedly's exploit analysis confirms the PoC constitutes a real exploit with high confidence. There is no current evidence of in-the-wild exploitation, and no threat actor attribution has been reported. The EPSS score is approximately 0.109% (29th percentile), and the vulnerability is not listed in the CISA KEV catalog as of the time of this report (GitHub Advisory).
plugin.json manifest with an XSS payload embedded in the displayName or description field, e.g.:{
"name": "helpful-productivity-plugin",
"displayName": {
"default": "<img src=x onerror=\"require('child_process').exec('calc.exe')\">"
},
"description": { "default": "Boost your productivity" },
"version": "1.0.0",
"author": "attacker",
"url": "https://github.com/attacker/helpful-productivity-plugin",
"minAppVersion": "2.0.0"
}displayName without HTML escaping.<img> tag fails to load, firing the onerror handler. Because Electron is configured with nodeIntegration: true and contextIsolation: false, require('child_process').exec(...) executes directly in the renderer process with OS-level privileges.~/.config/siyuan/ for API tokens), or a persistence mechanism (e.g., Windows scheduled task via schtasks) — all executable without any additional user interaction (SiYuan Advisory).cmd.exe, powershell.exe, /bin/bash, calc.exe, curl, wget) with SiYuan as the parent process; node.exe or electron.exe spawning shell commands.schtasks /query output; Linux/macOS: new cron entries); unexpected scripts or executables written to user home directories, temp folders, or SiYuan data directories; exfiltration of files such as ~/.ssh/id_rsa, browser credential stores, or SiYuan API token files.Run or RunOnce registry keys created under HKCU\Software\Microsoft\Windows\CurrentVersion\Run by the SiYuan process for persistence (SiYuan Advisory).Upgrade SiYuan to version v3.6.1 or later, which is the patched release addressing this vulnerability (SiYuan Advisory). As a temporary workaround until patching is possible, restrict or disable access to the Bazaar marketplace tab within SiYuan. The advisory recommends three long-term fixes: (1) HTML-escape all user-controlled metadata fields in bazaar.ts before rendering; (2) implement server-side sanitization in the Bazaar index build pipeline; and (3) harden the Electron configuration by setting nodeIntegration: false, contextIsolation: true, and sandbox: true. After patching, review and revoke any potentially exposed API tokens, SSH keys, or session credentials on affected systems.
The vulnerability was reported by researcher 0xkakash1 and published via GitHub Security Advisories on March 17, 2026 (GitHub Advisory). A technical write-up was published at infinitsec.net covering the stored XSS to RCE chain. The vulnerability was also picked up by openSUSE security announcements and Linux security advisory aggregators, indicating broad community awareness. No major vendor statements beyond the SiYuan project's own advisory have been identified.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."