Description
SiYuan before v3.8.1 contains a stored cross-site scripting vulnerability in confirmDialog() where unescaped package names and notebook names are interpolated directly into innerHTML assignments. Attackers can submit malicious bazaar packages with HTML/script payloads in the name field that execute in users' browsers when uninstalling packages or unlocking encrypted notebooks.
Published: 2026-08-30
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SiYuan versions prior to 3.8.1 contain a stored cross‑site scripting flaw in confirmDialog(). The application directly inserts unescaped package and notebook names into innerHTML when rendering confirmation dialogs. An attacker can craft a bazaar package whose name includes malicious JavaScript or HTML and trick a user into installing, uninstalling, or unlocking the package, causing the payload to execute in the victim’s browser. This allows arbitrary client‑side code execution, enabling cookie theft, session hijacking, and defacement in the user’s context.

Affected Systems

The flaw affects any SiYuan installation built with the Siyuan Note "siyuan" product that is version 3.x but lower than 3.8.1. It is not tied to specific operating systems; the vulnerability resides in the main application logic. Users of any 3.x release older than 3.8.1, whether running on Windows, macOS, or Linux, are potentially affected. No specific version sub‑numbers are listed, so all releases preceding 3.8.1 are covered.

Risk and Exploitability

The baseline CVSS score of 9.3 rates the issue as critical, indicating a high impact on confidentiality, integrity, and availability if exploited. The EPSS score is not provided, so the quantified likelihood cannot be determined, but exploitation requires only that a victim interacts with a maliciously named package or notebook. The vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities catalog, meaning no public proofs of exploitation have been disclosed yet, but the high severity warrants careful monitoring.

Generated by OpenCVE AI on August 30, 2026 at 15:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade SiYuan to version 3.8.1 or later to apply the vendor patch that sanitises package and notebook names before rendering in innerHTML.
  • Remove any bazaar packages or notebook entries whose names contain disallowed characters or suspected script content, and delete any remaining malicious packages from the system.
  • Enforce strict validation or sanitisation of package and notebook names on the client side before they are accepted; consider implementing a whitelist of allowed characters or escaping mechanisms to prevent further injection.

Generated by OpenCVE AI on August 30, 2026 at 15:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 30 Aug 2026 14:45:00 +0000

Type Values Removed Values Added
Description SiYuan before v3.8.1 contains a stored cross-site scripting vulnerability in confirmDialog() where unescaped package names and notebook names are interpolated directly into innerHTML assignments. Attackers can submit malicious bazaar packages with HTML/script payloads in the name field that execute in users' browsers when uninstalling packages or unlocking encrypted notebooks.
Title SiYuan before v3.8.1 Stored XSS via confirmDialog
First Time appeared B3log
B3log siyuan
Weaknesses CWE-79
CPEs cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
Vendors & Products B3log
B3log siyuan
References
Metrics cvssV3_1

{'score': 8.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-30T14:33:34.477Z

Reserved: 2026-08-30T13:38:29.951Z

Link: CVE-2026-82653

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-30T15:16:46.033

Modified: 2026-08-30T15:16:46.033

Link: CVE-2026-82653

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-30T16:00:14Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')