CVE-2026-85174
largePlaintext API Token Logging in SiYuan Enables Admin Takeover
SiYuan before v3.8.2 writes API tokens passed in query parameters into a plaintext, accessible log file whenever full-text search requests exceed timing thresholds (CWE-532, sensitive information exposure in logs). Because the condition is triggered by slow search traffic, tokens used by administrators can end up in the log during normal operation. An authenticated attacker can then call the getFile endpoint to read that log file, recover the admin's API token, and use it to gain permanent administrative access to the instance. All SiYuan deployments running versions prior to 3.8.2 are affected. There is currently no known exploitation, no public proof-of-concept, and a low predicted exploitation probability (EPSS 0.3%).
What to do: Upgrade SiYuan to v3.8.2 or later. As interim mitigation, restrict access to the server's log files and limit which authenticated roles can invoke the getFile endpoint, and rotate any API tokens (especially admin tokens) that may have been used in slow full-text search requests. Check exposed instances for tokens appearing in plaintext logs to determine whether credentials were already leaked.
| SiYuan | All versions prior to 3.8.2 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
SiYuan before v3.8.2 logs API tokens from query parameters in plaintext to an accessible log file when full-text search requests exceed timing thresholds. Authenticated attackers can read the log file via the getFile endpoint to recover admin API tokens and gain permanent administrative access.
- Weakness
- CWE-532
- Vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
In the news0 stories
No ingested article mentions this CVE yet.