CVE-2026-116169

SiYuan 2.10.0 before 3.8.7 Stored XSS via KaTeX \href in Math Blocks

Published Oct 25, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
SiYuan from 2.10.0 before 3.8.7 contains a stored cross-site scripting vulnerability that allows users with edit permission to inject script by placing javascript: URLs in math block content rendered with KaTeX trust enabled. Attackers can store \href, \url, or \includegraphics payloads that mathRender assigns via innerHTML, executing script in the application origin when a reader clicks the rendered link.

Analysis

AI-generated

Technical impact

The vulnerability is a stored cross‑site scripting flaw that allows an attacker with edit permissions to embed malicious JavaScript by using KaTeX \href, \url, or \includegraphics commands inside math blocks. When the content is later rendered, the KaTeX renderer injects the link into the page via innerHTML, and clicking the link evaluates the malicious script in the owner’s browser context, giving the attacker the ability to execute arbitrary code, steal session cookies, or modify the content viewed by other users.

Affected Systems

SiYuan Note, the personal knowledge‑management application, is impacted in versions 2.10.0 up to, but not including, 3.8.7. This includes all releases that do not incorporate the fix introduced in 3.8.7 or later. No other products or versions are known to be affected according to the CNA data.

Risk and Exploitability

The CVSS score of 5.1 denotes moderate severity, and the available information does not indicate the vulnerability is present in the CISA KEV list. Because exploitation requires a user with edit rights and a second user to view and click the embedded link, the attack surface is limited to environments where untrusted users can edit documents. Once the payload is viewed, the script is executed under the application origin, making it a significant risk for internal user compromise if the edit privilege is mis‑assigned or if an attacker has compromised an editor’s account.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SiYuan to version 3.8.7 or later where the math block rendering issue has been fixed.
  • If an upgrade is not feasible, configure the application to disable KaTeX trust rendering or remove support for the \href, \url, and \includegraphics commands in math blocks.
  • Restrict edit permissions to trusted users and audit permissions regularly to ensure only authorized accounts can modify content that may include math blocks.

Generated by OpenCVE AI on October 25, 2026 at 16:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Siyuan
Siyuan siyuan
Vendors & Products Siyuan
Siyuan siyuan
Type Values Removed Values Added
Description SiYuan from 2.10.0 before 3.8.7 contains a stored cross-site scripting vulnerability that allows users with edit permission to inject script by placing javascript: URLs in math block content rendered with KaTeX trust enabled. Attackers can store \href, \url, or \includegraphics payloads that mathRender assigns via innerHTML, executing script in the application origin when a reader clicks the rendered link.
Title SiYuan 2.10.0 before 3.8.7 Stored XSS via KaTeX \href in Math Blocks
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': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

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

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 7:57 PM
Reserved
Oct 25, 2026, 12:25 PM
Status
Deferred
Published
Oct 25, 2026, 2:16 PM
Modified
Oct 29, 2026, 8:17 PM