REDHAT-BUG-2500893: Low severity npm/hono vulnerability
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 Software
Event History
Frequently Asked Questions
What does an attacker need in order to exploit this issue?
An attacker needs the ability to make authentication requests to an application using Hono's basicAuth or bearerAuth middleware and collect precise timing measurements. The timing differences may allow inference of valid credentials.
Which authentication mechanisms are affected?
The issue affects Hono's basicAuth and bearerAuth middlewares. It is caused by non-constant-time string comparison in the timingSafeEqual function.
Which versions should be investigated?
Hono versions before 4.11.10 are described as affected. Deployments using the npm/hono package should identify whether they use either affected authentication middleware.