CVE-2026-73046

SiYuan before v3.7.4 Authentication Bypass via HTTP Basic Auth

Published Aug 15, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
Description
SiYuan before v3.7.4 improperly restricts excessive authentication attempts in the CheckAuth() middleware. The HTTP Basic Authentication branch, which guards nearly the entire /api/* surface, accepts the workspace access code (Conf.AccessAuthCode) as the Basic Auth password but never consults the CAPTCHA/lockout gate or increments the failure counter used by the cookie/session login path. This allows unauthenticated remote attackers to brute-force the admin access code with unlimited automated requests and obtain full RoleAdministrator access to the kernel. A secondary weakness exists because the access code is compared using a non-constant-time string comparison.

Analysis

AI-generated

Technical impact

SiYuan before version 3.7.4 contains a flaw in the authentication middleware that allows an attacker to send unlimited Basic Authentication attempts without encountering any lockout or CAPTCHA protection. The workspace access code is accepted as the password for the HTTP Basic Auth branch guarding the entire /api/ surface, but the failure counter and lockout gate are never consulted. Attackers can therefore brute‑force the admin access code, gain administrative privileges, and fully control the kernel. A secondary weakness is that the access code comparison uses a non‑constant‑time string comparison, potentially enabling timing attacks.

Affected Systems

Any installation of SiYuan note running a version before 3.7.4 is affected. This includes all releases up to and including 3.7.3, which lack the authentication counter, CAPTCHA gate, and constant‑time comparison introduced in 3.7.4.

Risk and Exploitability

The CVSS score of 9.3 indicates critical severity. Because the EPSS score is unavailable and the vulnerability is not listed in the CISA KEV catalog, there is no publicly reported exploitation data; however, the vulnerability is easily exploitable over the network using automated scripts that target the /api/* endpoints with HTTP Basic Auth. Attackers require only network access to the API service and can instantly achieve full administrative control without the need for privileged local access.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Install the official SiYuan update version 3.7.4 or later.
  • If an update cannot be applied immediately, block or disable HTTP Basic Authentication for all /api/ endpoints to prevent brute‑force attempts.
  • Ensure that authentication for the workspace access code now enforces CAPTCHA or lockout mechanisms and uses a constant‑time comparison before granting access.

Generated by OpenCVE AI on August 15, 2026 at 23:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', '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.7.4 improperly restricts excessive authentication attempts in the CheckAuth() middleware. The HTTP Basic Authentication branch, which guards nearly the entire /api/* surface, accepts the workspace access code (Conf.AccessAuthCode) as the Basic Auth password but never consults the CAPTCHA/lockout gate or increments the failure counter used by the cookie/session login path. This allows unauthenticated remote attackers to brute-force the admin access code with unlimited automated requests and obtain full RoleAdministrator access to the kernel. A secondary weakness exists because the access code is compared using a non-constant-time string comparison.
Title SiYuan before v3.7.4 Authentication Bypass via HTTP Basic Auth
First Time appeared B3log
B3log siyuan
Weaknesses CWE-307
CPEs cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*
Vendors & Products B3log
B3log siyuan
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-307

    Improper Restriction of Excessive Authentication Attempts

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 17, 2026, 5:33 PM
Reserved
Aug 10, 2026, 7:06 PM
Status
Deferred
Published
Aug 15, 2026, 10:16 PM
Modified
Aug 26, 2026, 5:05 PM