CVE-2026-72809: SiYuan before v3.7.4 Authentication Bypass via Localhost Trust
SiYuan versions <= v3.7.2 (patched in v3.7.4) contain an authentication bypass vulnerability in the kernel's CheckAuth function, which grants the administrator role (RoleAdministrator) to any request whose RemoteAddr is loopback (127.0.0.1) for a specific set of endpoints (including /api/system/exit, getNetwork, getWorkspaceInfo, /assets/, and /export/). These localhost bypasses sit outside the access auth code gate, so they apply even when an access auth code is configured. Because the fixed-port reverse proxy forwards requests to the kernel over loopback without injecting an authentication token and does not configure trusted proxies, a request forwarded through this proxy reaches the kernel with RemoteAddr = 127.0.0.1. If the fixed-port proxy is bound to a network interface, this could allow a remote unauthenticated attacker to obtain admin access on the affected endpoints; however, per the advisory this remote forwarding behavior was established only by code inspection and was not reproduced end-to-end.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
SiYuanto a version that resolves this vulnerability.Fixed in v3.7.4 - Configuration
Configure the fixed-port reverse proxy to inject an authentication token and to set trusted proxies so that kernel checks do not treat forwarded RemoteAddr=127.0.0.1 as inherently trusted for admin access.
SiYuan fixed-port reverse proxy trusted proxies / authentication token injection = configured - Compensating control
Ensure the SiYuan fixed-port reverse proxy is not bound to any external network interface that would allow remote unauthenticated requests to be forwarded such that the kernel observes RemoteAddr=127.0.0.1.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-72809?
CVE-2026-72809 has a severity rating of high (8).
How do I fix CVE-2026-72809?
The vulnerability can be fixed by updating SiYuan to version 3.7.4 or later.
What does CVE-2026-72809 affect?
CVE-2026-72809 affects SiYuan versions 3.7.2 and earlier.
What is the risk of CVE-2026-72809?
CVE-2026-72809 presents a risk of unauthorized access due to an authentication bypass via localhost trust.
Can CVE-2026-72809 lead to server takeover?
Yes, if exploited, CVE-2026-72809 can grant unauthorized administrative access to the system.