CVE-2026-56764

Hono - Timing Attack in basicAuth and bearerAuth Middleware

Published Jul 15, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
Hono before 4.11.10 contains a timing attack vulnerability in the basicAuth and bearerAuth middlewares due to non-constant-time string comparison in the timingSafeEqual function. Attackers can exploit early termination of string equality checks to infer valid credentials through precise timing measurements.

Analysis

AI-generated

Technical impact

The flaw occurs because Hono's basicAuth and bearerAuth middlewares perform non‑constant‑time string comparisons using timingSafeEqual, a weakness categorized as Timing‑Based Side‑Channel Analysis (CWE‑208). This allows an attacker to detect differences in credential strings by measuring request processing time. By exploiting this timing side channel, an adversary can systematically reveal valid usernames or passwords, effectively compromising authentication controls.

Affected Systems

Versions of Hono earlier than 4.11.10 are vulnerable. The issue is present in the Hono framework used in Node.js environments. Any deployment of these affected versions that employs the basicAuth or bearerAuth middleware is at risk.

Risk and Exploitability

The vulnerability scores a CVSS of 6.3, indicating a moderate severity. The EPSS score of less than 1 % shows a low current exploitation probability, and the vulnerability is not listed in CISA KEV. Attackers would need to perform precise timing measurements against the authentication endpoints, and it is inferred that this can be done over the network, but generally requires a remote attacker positioned close to the target or with sufficient network access. Given the medium CVSS and the low EPSS, the overall risk is moderate but should be mitigated promptly to prevent credential disclosure.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Hono to version 4.11.10 or later to eliminate the timing side‑channel flaw.
  • Verify that any authentication logic uses a constant‑time comparison; replace custom checks with a secure implementation if necessary.
  • Disable or remove basicAuth and bearerAuth middleware on servers that do not require them, or apply strict rate limiting to authentication attempts.

Generated by OpenCVE AI on July 31, 2026 at 04:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Hono before 4.11.10 contains a timing attack vulnerability in the basicAuth and bearerAuth middlewares due to non-constant-time string comparison in the timingSafeEqual function. Attackers can exploit early termination of string equality checks to infer valid credentials through precise timing measurements.
Title Hono - Timing Attack in basicAuth and bearerAuth Middleware
First Time appeared Hono
Hono hono
Weaknesses CWE-208
CPEs cpe:2.3:a:hono:hono:*:*:*:*:*:node.js:*:*
Vendors & Products Hono
Hono hono
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-208

    Observable Timing Discrepancy

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 15, 2026, 1:50 PM
Reserved
Jun 22, 2026, 9:55 PM
Status
Deferred
Published
Jul 15, 2026, 12:18 PM
Modified
Oct 24, 2026, 10:10 PM
Severity
Low
Public date
Jul 15, 2026, 11:25 AM