Description
SiYuan before v3.8.2 contains a stored cross-site scripting vulnerability in the Search Assets result list where asset filenames are interpolated into HTML without escaping. Authenticated attackers can craft asset filenames containing malicious markup that executes JavaScript in the victim's browser when searching assets, enabling same-origin API requests and application state manipulation.
Published: 2026-09-09
Score: 8.4 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The reported issue is a stored cross‑site scripting flaw located in the asset search results list where filenames are displayed without escaping. Because the filenames are controlled by the attacker through crafted uploads, the malicious markup runs in the victim’s browser whenever that user searches for assets. This allows the attacker to execute arbitrary JavaScript in the victim’s session, enabling same‑origin API calls, session hijacking or manipulation of application state.

Affected Systems

Siyuan Note’s Siyuan application is impacted, specifically all releases prior to 3.8.2, including 3.8.1 and earlier. The vulnerability is present across all supported platforms because the asset search interface is a core feature of both the desktop and web editions.

Risk and Exploitability

The CVSS score of 8.4 indicates high severity. Exposure requires an authenticated session, so an attacker must first obtain legitimate credentials or trick a user into authenticating. Once authenticated, the attacker can create a filename containing malicious markup, trigger a search, and have the script executed in the victim’s browser. The EPSS score is not available, and the issue is not listed in the CISA KEV database, suggesting no widely documented exploitation has yet been observed. Nevertheless, the stored XSS could be used to hijack sessions, read cookies, and perform same‑origin API requests, so the risk is significant for any environment relying on the affected versions.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Siyuan version 3.8.2 or later to ensure the stored‑XSS vulnerability is patched.
  • If an upgrade is not immediately possible, configure the application to reject any filenames containing HTML or script tags before storage, effectively sanitizing user input at the point of upload.
  • After sanitization or upgrade, monitor application logs for attempts to upload suspicious filenames and review asset search activity for anomalous behavior.

Generated by OpenCVE AI on September 9, 2026 at 12:52 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 Assets result list where asset filenames are interpolated into HTML without escaping. Authenticated attackers can craft asset filenames containing malicious markup that executes JavaScript in the victim's browser when searching assets, enabling same-origin API requests and application state manipulation.
Title SiYuan before v3.8.2 Stored XSS via unescaped asset filenames
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-09T14:06:23.069Z

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

Link: CVE-2026-87813

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-09T12:17:16.250

Modified: 2026-09-09T12:17:16.250

Link: CVE-2026-87813

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')