CVE-2026-87811

SiYuan before v3.8.2 Stored XSS via notebook template paths

Published Sep 9, 2026 CVSS 4.0 · 8.4 High EPSS < 1% KEV · Not listed
Description
SiYuan before v3.8.2 inserts persisted notebook template paths into HTML input value attributes without proper attribute encoding. Attackers can craft malicious template paths that break out of the attribute context and execute JavaScript when a victim opens notebook configuration, enabling same-origin API requests and application state manipulation.

Analysis

AI-generated

Technical impact

SiYuan versions before 3.8.2 embed notebook template paths directly into HTML input value attributes without proper attribute encoding. Attackers can craft malicious paths that break out of the value context and inject JavaScript that executes within the application’s same‑origin context, allowing the execution of arbitrary code, manipulation of application state, and the ability to perform same‑origin API requests.

Affected Systems

All installations of the SiYuan note application that run a version earlier than 3.8.2 are affected. The vulnerability applies to any user who can influence or create a notebook template path that is persisted in the configuration.

Risk and Exploitability

The CVSS score of 8.4 denotes a high‑severity flaw. EPSS is not available, so the precise likelihood of exploitation remains uncertain, and the vulnerability is not listed in the CISA KEV catalog. The attack requires a victim to open a notebook whose configuration contains a malicious template path; the ability to inject such a path suggests a moderate opportunistic risk in environments where notebook configurations can be influenced by external parties.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to SiYuan version 3.8.2 or later to receive the fix that properly encodes template paths.
  • If upgrading is not immediately possible, audit existing notebook configurations and remove or sanitize any custom template paths containing untrusted characters.
  • Configure the application or strengthen access controls to prevent the creation of unsafe template paths by untrusted users or scripts.

Generated by OpenCVE AI on September 9, 2026 at 12:53 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 inserts persisted notebook template paths into HTML input value attributes without proper attribute encoding. Attackers can craft malicious template paths that break out of the attribute context and execute JavaScript when a victim opens notebook configuration, enabling same-origin API requests and application state manipulation.
Title SiYuan before v3.8.2 Stored XSS via notebook template paths
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, 12:19 PM
Reserved
Sep 9, 2026, 10:30 AM
Status
Deferred
Published
Sep 9, 2026, 12:17 PM
Modified
Sep 9, 2026, 8:20 PM