CVE-2026-116170

SiYuan before v3.8.7 SQL Injection via History Search op and query

Published Oct 25, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
SiYuan before v3.8.7 contains an sql injection vulnerability that allows admin-token holders to read history.db by injecting unescaped op and type=3 query values. Attackers can send crafted UNION SELECT payloads to searchHistory or getHistoryItems endpoints to exfiltrate deleted document content, titles, and paths.

Analysis

AI-generated

Technical impact

SiYuan before version 3.8.7 includes a SQL injection flaw that allows an attacker who possesses an admin-token to embed malicious SQL in the unescaped 'op' and 'type=3' query parameters sent to the searchHistory or getHistoryItems endpoints. By supplying crafted UNION SELECT payloads, the attacker can retrieve data from the history.db file, exposing deleted document content, titles, and paths. The vulnerability directly leaks confidential information stored in the application’s audit trail and does not rely on additional privileges beyond those granted to a valid administrator.

Affected Systems

The affected product is the SiYuan note‑taking application made by Siyuan‑Note. Versions earlier than 3.8.7 are vulnerable; any deployment with an active admin-token on those releases is susceptible.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. EPSS is not available and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires possession of an admin-token and involves sending crafted HTTP requests to the searchHistory or getHistoryItems API endpoints, which can be performed with low effort once the privileged token is in hand. The result is potentially full exposure of deleted document metadata and content, constituting a significant confidentiality risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update SiYuan to version 3.8.7 or newer to remove the injection vulnerability.
  • If an update cannot be deployed immediately, restrict access to the searchHistory and getHistoryItems endpoints or configure input filtering to block unescaped 'op' and 'type' parameters.
  • Rotate or revoke any compromised admin tokens and enforce stricter access controls so that only trusted personnel can use them.

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 before v3.8.7 contains an sql injection vulnerability that allows admin-token holders to read history.db by injecting unescaped op and type=3 query values. Attackers can send crafted UNION SELECT payloads to searchHistory or getHistoryItems endpoints to exfiltrate deleted document content, titles, and paths.
Title SiYuan before v3.8.7 SQL Injection via History Search op and query
First Time appeared B3log
B3log siyuan
Weaknesses CWE-89
CPEs cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
Vendors & Products B3log
B3log siyuan
References
Metrics cvssV3_1

{'score': 4.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

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

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 4:13 PM
Reserved
Oct 25, 2026, 12:25 PM
Status
Deferred
Published
Oct 25, 2026, 2:16 PM
Modified
Oct 29, 2026, 5:18 PM