CVE-2026-56764
lowpriority · track · 0EPSS 0.003 · 22 %ileEUUSEPSS · scored 2026-10-26
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–medium · 1.7–6.3
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (2)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-gq3j-xvxp-8hrfHono added timing comparison hardening in basicAuth and bearerAuth2026-02-19ghsa · osvUS
## Summary The `basicAuth` and `bearerAuth` middlewares previously used a comparison that was not fully timing-safe. The `timingSafeEqual` function used normal string equality (`===`) when comparing hash values. This comparison may stop early if values differ, which can theoretically cause small timing differences. The implementation has been updated to use a safer comparison method. ## Details The issue was caused by the use of normal string equality (`===`) when comparing hash values inside the `timingSafeEqual` function. In JavaScript, string comparison may stop as soon as a difference is found. This means the comparison time can slightly vary depending on how many characters match. Under very specific and controlled conditions, this behavior could theoretically allow timing-based analysis. The implementation has been updated to: - Avoid early termination during comparison - Use a constant-time-style comparison method ## Impact This issue is unlikely to be exploited in normal environments. It may only be relevant in highly controlled situations where precise timing measurements are possible. This change is considered a security hardening improvement. Users are encouraged to upgrade to the latest version.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (6)
External citations — patches, advisories, analysis.
- https://github.com/honojs/hono/security/advisories/GHSA-gq3j-xvxp-8hrfcnnvd
- https://www.vulncheck.com/advisories/hono-timing-attack-in-basicauth-and-bearerauth-middlewarecnnvd
- https://github.com/honojs/hono/security/advisories/GHSA-gq3j-xvxp-8hrfenisa_euvd
- https://www.vulncheck.com/advisories/hono-timing-attack-in-basicauth-and-bearerauth-middlewareenisa_euvd
- https://github.com/honojs/hono/security/advisories/GHSA-gq3j-xvxp-8hrfnvd
- https://www.vulncheck.com/advisories/hono-timing-attack-in-basicauth-and-bearerauth-middlewarenvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan