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.
Published: 2026-09-09
Score: 8.4 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

History

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

Type Values Removed Values Added
Metrics ssvc

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


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

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


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-09T12:19:28.698Z

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

Link: CVE-2026-87811

cve-icon Vulnrichment

Updated: 2026-09-09T12:19:03.547Z

cve-icon NVD

Status : Received

Published: 2026-09-09T12:17:15.950

Modified: 2026-09-09T13:20:44.780

Link: CVE-2026-87811

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