PT-2026-67407 · Siyuan · Siyuan
CVSS v3.1
10
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
SiYuan versions prior to 3.7.3
Description
A SQL injection issue exists in the '/api/filetree/searchDocs' endpoint. The
keyword parameter is concatenated directly into SQL statements without escaping or parameter binding. This endpoint is accessible via a publish RoleReader token or without authentication if publish mode is active and Publish.Auth.Enable is set to false. Since the system uses a read-write SQLite handle that supports stacked statements (multiple SQL commands separated by semicolons), an attacker can read and modify database content across all non-encrypted notebooks on the instance.Recommendations
Update SiYuan to version 3.7.3 or later.
As a temporary mitigation, avoid using the
keyword parameter in the '/api/filetree/searchDocs' endpoint or restrict access to this endpoint.Exploit
Fix
SQL injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Siyuan