CVE-2026-85174

SiYuan before v3.8.2 API Token Exposure via Log File

Published Sep 3, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability causes SiYuan to log API tokens that are passed as query parameters into a plaintext log file when a full-text search request exceeds certain timing thresholds. An attacker who has authenticated access to the system can then read this log file through the getFile endpoint and obtain admin API tokens, which allows them to achieve permanent administrative privileges. This flaw is a classic example of insecure logging (CWE‑532).

Affected Systems

SiYuan (siyuan-note:siyuan) versions earlier than 3.8.2 are affected.

Risk and Exploitability

The CVSS score is 8.7, indicating high severity, while no EPSS score is available and the vulnerability is not listed in the CISA KEV catalog. Attacks require the attacker to be authenticated to the application and able to trigger a full‑text search that exceeds the timing threshold, after which the attacker reads the log via the getFile API. If the log file is exposed, the extraction of API tokens is straightforward and grants continuous administrative access.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to SiYuan version 3.8.2 or later, which removes the logging of API tokens.
  • Restrict access to the application’s log files so that unauthenticated or non‑privileged users cannot read them via the getFile endpoint.
  • Implement secure logging practices by ensuring that sensitive data such as API tokens is never written to disk in plaintext (addressing CWE‑532).

Generated by OpenCVE AI on September 3, 2026 at 12:59 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': 'total'}, '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.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.
Title SiYuan before v3.8.2 API Token Exposure via Log File
First Time appeared B3log
B3log siyuan
Weaknesses CWE-532
CPEs cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
Vendors & Products B3log
B3log siyuan
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.7, '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'}

Weaknesses
  • CWE-532

    Insertion of Sensitive Information into Log File

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 5, 2026, 1:18 AM
Reserved
Sep 3, 2026, 11:08 AM
Status
Deferred
Published
Sep 3, 2026, 1:06 PM
Modified
Sep 8, 2026, 8:18 PM