Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-87808— SiYuan before v3.8.2 Read-Only Boundary Bypass via fullTextSearchBlock

Quick assessment

Affected
siyuan-note siyuan
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

SiYuan 版本 ≤ 3.8.1 中,针对 CVE-2026-32767(GHSA-j7wh-x834-p3r7)的修复并不完整。此前的修复(提交 d5e2d0bc)在 POST /api/search/fullTextSearchBlock 接口中对 SQL 模式(method=2)增加了管理员权限检查,但该接口仍未强制应用“只读边界”:当 method=2 时,它会将调用者提供的 SQL 直接转发到 blocks 数据库的查询路径,而未调用 model.CheckReadonly 或 CheckReadonl

CVSS 4.9 · Medium

Possible ATT&CK Techniques 1 AI

T1005 · Data from Local System
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-87808

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
SiYuan before v3.8.2 Read-Only Boundary Bypass via fullTextSearchBlock
Source: CVE Program / CVE List V5
Vulnerability Description
SiYuan versions <= 3.8.1 contain an incomplete fix for CVE-2026-32767 (GHSA-j7wh-x834-p3r7). The prior fix (commit d5e2d0bc) added an administrator check for SQL mode (method=2) in POST /api/search/fullTextSearchBlock, but the endpoint still does not enforce the application's read-only boundary: for method=2 it forwards caller-supplied SQL to the blocks database query path without calling model.CheckReadonly or CheckReadonlyStatementInBox. As a result, when a workspace runs in read-only mode (--readonly=true), an authenticated administrator can submit arbitrary SQL through /api/search/fullTextSearchBlock and obtain raw read access to the blocks database, even though the dedicated /api/query/sql endpoint is blocked in that mode. Fixed in v3.8.2.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
保护机制失效
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
siyuan-note siyuan 0 ~ 3.8.2 -

II. Public POCs for CVE-2026-87808

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-87808

登录查看更多情报信息。

Patches & Fixes for CVE-2026-87808 (1)

Vendor Advisories for CVE-2026-87808 (2)

Same Patch Batch · siyuan-note · 2026-09-09 · 9 CVEs total

CVE-2026-87815 8.7 HIGH SiYuan before v3.8.2 Path Traversal via removeRiffDeck
CVE-2026-87807 7.5 HIGH siyuan before v3.8.2 SQL Injection via fullTextSearchBlock
CVE-2026-87814 7.3 HIGH SiYuan before v3.8.2 Stored XSS via Asset Preview
CVE-2026-87811 7.3 HIGH SiYuan before v3.8.2 Stored XSS via notebook template paths
CVE-2026-87813 7.3 HIGH SiYuan before v3.8.2 Stored XSS via unescaped asset filenames
CVE-2026-87812 6.8 MEDIUM SiYuan before v3.8.2 Stored XSS via Bazaar iconURL
CVE-2026-87809 6.5 MEDIUM Siyuan before v3.8.2 Information Disclosure via Export Preview
CVE-2026-87810 5.3 MEDIUM Siyuan before v3.8.2 Information Disclosure via fullTextSearchBlock

IV. Related Vulnerabilities

V. Comments for CVE-2026-87808

No comments yet


Leave a comment