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.
Severity (CVSS)
| Base score | 6.3 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| 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 |
| Provided by | CNA |
Weaknesses
- CWE-208 — Observable Timing Discrepancy
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Hono | Hono | 0 to <4.11.10; 4.11.10 |
References
- https://github.com/honojs/hono/security/advisories/GHSA-gq3j-xvxp-8hrf (vendor-advisory)
- https://www.vulncheck.com/advisories/hono-timing-attack-in-basicauth-and-bearerauth-middleware (third-party-advisory)
Generated from the official CVE List on 16 Jul 2026 07:01 UTC.