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.
Published: 2026-07-15
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

History

Wed, 29 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Low


Wed, 15 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 15 Jul 2026 12:00:00 +0000

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


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-15T13:50:24.700Z

Reserved: 2026-06-22T21:55:17.942Z

Link: CVE-2026-56764

cve-icon Vulnrichment

Updated: 2026-07-15T13:49:52.357Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Low

Publid Date: 2026-07-15T11:25:32Z

Links: CVE-2026-56764 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T04:15:04Z

Weaknesses
  • CWE-208

    Observable Timing Discrepancy