SiYuan Knowledge Management System Access Control Vulnerability in Tag API Endpoint

Vulnerability

A vulnerability exists in SiYuan personal knowledge management system versions prior to 3.7.0, specifically in the POST /api/tag/getTag endpoint. The issue arises from inadequate access control, as the endpoint only requires authentication but neglects administrative and read-only checks. This oversight allows any authenticated user, including those with RoleReader and RoleEditor accounts in read-only workspaces, to manipulate the tag sorting configuration. The vulnerability is exacerbated by the fact that the configuration change is saved to the entire workspace's configuration file, potentially overwriting other users' settings.

Impact

Exploitation of this vulnerability allows unauthorized modification of the tag sorting order, with changes being saved to the workspace's configuration file. This not only disrupts the intended sorting functionality but also poses a risk of overwriting other users' configuration settings, creating a time-of-check-to-time-of-use vulnerability on the global configuration object.

Reproduction

To reproduce this vulnerability, authenticate as any user role that passes the CheckAuth requirement, such as an admin. Then, send a POST request to the /api/tag/getTag endpoint with a sort argument to change the Conf.Tag.Sort value. After the request is processed, the new sort value can be confirmed by checking the workspace's configuration file, where the change will be reflected.

Remediation

Users should update to SiYuan version 3.7.0 or later, where this vulnerability has been fixed.

Added: May 14, 2026, 7:26 PM
Updated: May 14, 2026, 7:26 PM

Vulnerability Rating

Custom Algorithm
spread
0.3
impact
0.6
exploitability
6.2
remediation
7.7
relevance
8.3
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.