CVE-2026-87807

siyuan before v3.8.2 SQL Injection via fullTextSearchBlock

Published Sep 9, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
siyuan versions before v3.8.2 contain an authenticated SQL injection vulnerability in the fullTextSearchBlock endpoint's method=1 query parameter. Attackers can inject UNION SELECT statements to read the entire blocks table, bypassing publish-access controls and exposing all document content and sensitive attributes.

Analysis

AI-generated

Technical impact

The vulnerability is an authenticated SQL injection in the fullTextSearchBlock endpoint’s method=1 query parameter, allowing attackers to inject UNION SELECT statements. This flaw permits reading the entire blocks table, bypassing publish‑access controls and exposing all document content and sensitive attributes. The weakness falls under the injection category, specifically CWE‑89.

Affected Systems

All versions of the Siyuan note‑taking application produced by siyuan‑note:siyuan that are prior to version 3.8.2 are affected. The affected product is identified by the CPE that includes b3log:siyuan and is listed as "siyuan" in the CNA vendor/product list.

Risk and Exploitability

The CVSS score is 8.7, indicating a high severity. The EPSS score is not available, so the exact likelihood of exploitation is uncertain, though the flaw is considered exploitable by authenticated users. The vulnerability is not currently listed in CISA KEV. Attackers need access to a valid user account but can then expose all document data via API calls to the vulnerable endpoint.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Siyuan to version 3.8.2 or later which removes the vulnerable code.
  • If an update is not immediately possible, restrict or disable the fullTextSearchBlock endpoint through API firewall rules or application configuration.
  • Ensure that only privileged users have access to authenticated API endpoints and enforce strict role‑based access control for document retrieval.

Generated by OpenCVE AI on September 9, 2026 at 12:55 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': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description siyuan versions before v3.8.2 contain an authenticated SQL injection vulnerability in the fullTextSearchBlock endpoint's method=1 query parameter. Attackers can inject UNION SELECT statements to read the entire blocks table, bypassing publish-access controls and exposing all document content and sensitive attributes.
Title siyuan before v3.8.2 SQL Injection via fullTextSearchBlock
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': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/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 8, 2026, 3:51 PM
Reserved
Sep 9, 2026, 10:30 AM
Status
Deferred
Published
Sep 9, 2026, 12:17 PM
Modified
Oct 8, 2026, 4:17 PM