What’s Vulnerable › Vulnerabilities

CVE-2026-56764: Hono - Timing Attack in basicAuth and bearerAuth Middleware

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.

Affected products

How to fix

Upgrade to a fixed version: honojs hono 4.11.10. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-56764 or the next vulnerability affects your stack