Skip to main content

Hono CVE-2026-56764

| EUVDEUVD-2026-44631 MEDIUM
Observable Timing Discrepancy (CWE-208)
2026-07-15 VulnCheck GHSA-98q5-3v5r-qvfh
6.3
CVSS 4.0 · Vendor: VulnCheck
Share

Severity by source

Vendor (VulnCheck) PRIMARY
6.3 MEDIUM
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
3.7 LOW

Network-reachable timing oracle requires low-jitter conditions for reliable exploitation (AC:H); no privileges needed to send auth probes (PR:N); impact limited to potential credential inference with no integrity or availability consequence.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Red Hat
3.7 LOW
qualitative

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
X

Lifecycle Timeline

3
Patch available
Jul 15, 2026 - 13:03 EUVD
Source Code Evidence Fetched
Jul 15, 2026 - 12:37 vuln.today
Analysis Generated
Jul 15, 2026 - 12:37 vuln.today

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 21 npm packages depend on hono (21 direct, 0 indirect)

Ecosystem-wide dependent count for version 4.11.10.

DescriptionCVE.org

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.

AnalysisAI

Credential inference via timing side-channel is possible in Hono before 4.11.10 when the built-in basicAuth or bearerAuth middlewares are in use, due to JavaScript's short-circuit = string equality operator being used inside the timingSafeEqual function for hash comparison. Because = terminates on the first differing character, response times vary slightly based on how many leading characters of a credential match the stored hash, enabling an attacker to recover credentials one character at a time through statistical timing analysis. No public exploit has been identified and the vendor GHSA advisory explicitly characterizes this as a hardening improvement with low practical exploitability outside highly controlled, low-jitter network environments.

Technical ContextAI

Hono is a lightweight, edge-native web framework for JavaScript and TypeScript distributed via npm (hono), designed to run across runtimes including Cloudflare Workers, Deno, Bun, and Node.js. The affected component is the internal timingSafeEqual utility function used by both the basicAuth and bearerAuth built-in middleware modules to compare a supplied credential against the expected hash. CWE-208 (Observable Timing Discrepancy) describes exactly this root cause: when a secret comparison leaks execution time as a side channel, an attacker can iteratively probe character positions to reconstruct the secret. In standard JavaScript, the === operator is a lexicographic comparison that short-circuits as soon as a byte mismatch is found, meaning a credential that matches the first N characters takes measurably longer to reject than one that diverges immediately. The fix in commit 91def7cab654bad5eecc9270e6620d577971ff5e replaces this with a byte-by-byte constant-time comparison to eliminate the differential signal. The CPE cpe:2.3:a:hono:hono:*:*:*:*:*:*:*:* covers all versions of the package prior to 4.11.10.

RemediationAI

Upgrade the hono npm package to version 4.11.10 or later; this is the vendor-released patch per the GHSA advisory at https://github.com/honojs/hono/security/advisories/GHSA-gq3j-xvxp-8hrf, with the fix implemented in commit 91def7cab654bad5eecc9270e6620d577971ff5e. If an immediate upgrade is not feasible, two compensating controls can raise the bar for exploitation: first, enforce aggressive rate limiting on authentication endpoints (e.g., 5-10 requests per IP per minute) to dramatically increase the time required to accumulate statistically significant timing samples - the trade-off is legitimate clients may be throttled during burst usage; second, introduce a fixed artificial delay (e.g., await sleep(Math.random() * 5) ms) in authentication response paths to add jitter that masks the underlying timing signal - the trade-off is increased average authentication latency. Neither workaround eliminates the root cause and both should be treated as temporary measures pending the upgrade.

More in Hono

View all
CVE-2024-32652 HIGH POC
7.5 Apr 19

The adapter @hono/node-server allows you to run your Hono application on Node.js. Rated high severity (CVSS 7.5), this v

CVE-2024-48913 MEDIUM POC
5.9 Oct 15

Hono, a web framework, prior to version 4.6.5 is vulnerable to bypass of cross-site request forgery (CSRF) middleware by

CVE-2026-71848 MEDIUM POC
5.3 Aug 07

Quadratic-complexity denial of service in Hono's `languageDetector` middleware (versions 4.12.0-4.12.33) allows unauthen

CVE-2024-32869 MEDIUM POC
5.3 Apr 23

Hono is a Web application framework that provides support for any JavaScript runtime. Rated medium severity (CVSS 5.3),

CVE-2024-23340 MEDIUM POC
5.3 Jan 22

@hono/node-server is an adapter that allows users to run Hono applications on Node.js. Rated medium severity (CVSS 5.3),

CVE-2024-43787 MEDIUM POC
5.0 Aug 22

Hono is a Web application framework that provides support for any JavaScript runtime. Rated medium severity (CVSS 5.0),

CVE-2026-71850 MEDIUM POC
4.8 Aug 07

Cross-user HTML disclosure in Hono's server-side rendering affects all applications using hono/jsx with memo()-wrapped c

CVE-2023-50710 MEDIUM POC
4.3 Dec 14

Hono is a web framework written in TypeScript. Rated medium severity (CVSS 4.3), this vulnerability is remotely exploita

CVE-2026-27700 HIGH
8.2 Feb 25

Hono is a Web application framework that provides support for any JavaScript runtime. [CVSS 8.2 HIGH]

CVE-2026-22818 HIGH
8.2 Jan 13

Hono versions before 4.11.4 allow JWT algorithm confusion attacks through improper algorithm validation in the JWK/JWKS

CVE-2026-22817 HIGH
8.2 Jan 13

Hono before version 4.11.4 contains a JWT algorithm confusion vulnerability in its JWK/JWKS verification middleware that

CVE-2026-71849 LOW POC
3.7 Aug 07

Hono's `proxy()` function in the `hono/proxy` Proxy Helper leaks connection-scoped response headers to downstream client

Vendor StatusVendor

Share

CVE-2026-56764 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy