Technical impact
SiYuan, a personal knowledge‑management application, contains an API flaw that lets unauthenticated callers read the contents of any document stored in the system. The vulnerability is caused by the combination of the /api/file/readDir endpoint, which returns document identifiers, and the /api/block/getChildBlocks endpoint, which returns the content for those identifiers without imposing proper access checks. The weakness is an instance of improper bounds checking and is classified as CWE‑125. The exposure allows an attacker to extract confidential information from any user’s documents, compromising confidentiality for all stored data.
Affected Systems
The flaw affects installations of the SiYuan note‑taking application produced by the vendor siyuan-note. Versions released prior to 3.6.2 are vulnerable because they use the unprotected API chain described above. Users running any SiYuan instance older than 3.6.2 need to verify their version and upgrade if necessary.
Risk and Exploitability
The CVSS score of 9.8 marks this vulnerability as critical, indicating a full compromise of confidentiality. The EPSS score of 2% suggests that exploitation is not widespread at present, and the flaw is not listed in CISA’s Known Exploited Vulnerabilities catalog. The likely attack vector is remote: an unauthenticated attacker can invoke the exposed publishing service APIs over the network to enumerate and read all documents. No special privileges or authentication are required to exploit the flaw, so the risk is significant for organizations that use SiYuan to store sensitive knowledge.
Github GHSA