PT-2026-40730 · Siyuan · Siyuan

Revanth011

·

Published

2026-05-13

·

Updated

2026-05-20

·

CVE-2026-45375

CVSS v3.1

9.0

Critical

VectorAV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions SiYuan versions prior to 0.0.0-20260421031503-96dfe0bea474
Description A stored cross-site scripting (XSS) issue exists in the Bazaar marketplace. The application fails to sanitize the name and version fields in package metadata files (such as plugin.json, theme.json, template.json, widget.json, and icon.json). These unsanitized fields are rendered directly into the Marketplace UI via the innerHTML property in the app/src/config/bazaar.ts file, specifically through variables like preferredName, name, and version.
In the desktop client, this is escalated to arbitrary OS command execution because the Electron renderer is configured with nodeIntegration: true, contextIsolation: false, and webSecurity: false. This allows an attacker to use Node.js APIs, such as require('child process').exec(), to execute commands under the victim's account. The attack is zero-click, triggering as soon as a user opens the Marketplace tab (Settings → Marketplace → Downloaded → Plugins), without requiring the installation of any package.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

RCE

XSS

Improper Encoding or Escaping of Output

Weakness Enumeration

Related Identifiers

CVE-2026-45375
GHSA-27QC-M5GF-JV5R
GO-2026-5001

Affected Products

Siyuan