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.
Published: 2026-08-15
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Sat, 15 Aug 2026 22:00:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-15T21:44:50.527Z

Reserved: 2026-08-10T19:06:03.365Z

Link: CVE-2026-73046

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T22:16:54.600

Modified: 2026-08-15T22:16:54.600

Link: CVE-2026-73046

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-15T23:30:16Z

Weaknesses
  • CWE-307

    Improper Restriction of Excessive Authentication Attempts