CVE-2026-87813

SiYuan before v3.8.2 Stored XSS via unescaped asset filenames

Published Sep 9, 2026 CVSS 4.0 · 8.4 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
First Time appeared Siyuan
Siyuan siyuan
Vendors & Products Siyuan
Siyuan siyuan
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

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

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 9, 2026, 2:06 PM
Reserved
Sep 9, 2026, 10:30 AM
Status
Deferred
Published
Sep 9, 2026, 12:17 PM
Modified
Sep 9, 2026, 8:20 PM