Description
SiYuan before v3.8.2 contains a stored cross-site scripting vulnerability in the search asset preview feature that fails to escape indexed asset content before inserting it into the DOM using innerHTML. Attackers who can place crafted text assets in a workspace can execute JavaScript in the SiYuan origin when victims preview the assets, enabling authenticated API requests and workspace manipulation.
Published: 2026-09-09
Score: 8.4 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SiYuan before version 3.8.2 contains a stored cross‑site scripting flaw located in the asset preview function. The application does not escape indexed asset content before injecting it into the DOM with innerHTML, allowing an attacker to embed arbitrary JavaScript. When a victim previews such a crafted asset, the script executes in the context of the SiYuan origin, enabling the attacker to make authenticated API calls and manipulate the workspace. This flaw can compromise the confidentiality, integrity, and availability of data within the affected workspace.

Affected Systems

The vulnerability applies to the Siyuan note product developed by siyuan-note. Any installation running a version earlier than 3.8.2 is affected. Identified by the vendor/product name siyuan-note:siyuan.

Risk and Exploitability

The CVSS score of 8.4 indicates a high‑severity high‑impact vulnerability. Although EPSS data is not available, the possession of a stored XSS on a user interface that can be triggered by an authenticated user makes exploitation likely if the attacker can add malicious assets. The issue is not listed in CISA's KEV catalog, but the potential for high privilege compromise warrants prompt remediation. Exploitation requires the attacker to place a crafted asset in a workspace; otherwise, the flaw remains unexploited.

Generated by OpenCVE AI on September 9, 2026 at 12:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Siyuan to version 3.8.2 or newer to address the stored XSS flaw.
  • If an upgrade cannot be performed immediately, restrict the preview of assets by disabling the preview feature or applying strict input sanitization to prevent malicious content from being injected into the DOM.
  • Audit existing workspaces to locate and remove any assets that contain suspicious or unknown scripts, and review user permissions to limit the ability to upload assets from untrusted sources.

Generated by OpenCVE AI on September 9, 2026 at 12:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 09 Sep 2026 11:30:00 +0000

Type Values Removed Values Added
Description SiYuan before v3.8.2 contains a stored cross-site scripting vulnerability in the search asset preview feature that fails to escape indexed asset content before inserting it into the DOM using innerHTML. Attackers who can place crafted text assets in a workspace can execute JavaScript in the SiYuan origin when victims preview the assets, enabling authenticated API requests and workspace manipulation.
Title SiYuan before v3.8.2 Stored XSS via Asset Preview
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': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N'}

cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-09T11:21:01.964Z

Reserved: 2026-09-09T10:30:15.670Z

Link: CVE-2026-87814

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-09T12:17:16.390

Modified: 2026-09-09T12:17:16.390

Link: CVE-2026-87814

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-09T13:00:14Z

Weaknesses
  • CWE-79

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