CVE-2026-56764
Hono - Timing Attack in basicAuth and bearerAuth Middleware
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
6.3
Hono - Timing Attack in basicAuth and bearerAuth Middleware
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.
- Record
CVE-2026-56764- CVSS 4.0
- 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 - CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-208
- Updated
- 2026-11-02
EUVDEUVD-2026-44631
6.3
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.
- Record
EUVD-2026-44631- CVSS 4.0
- 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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-98q5-3v5r-qvfh
6.3
Hono before 4.11.10 contains a timing attack vulnerability in the basicAuth and bearerAuth...
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.
- Record
GHSA-98q5-3v5r-qvfh- CVSS 4.0
- 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 - CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-208
- Updated
- 2026-11-02
GitHub AdvisoriesGHSA-gq3j-xvxp-8hrf
3.7
Hono added timing comparison hardening in basicAuth and bearerAuth
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.
- Record
GHSA-gq3j-xvxp-8hrf- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-208
- Updated
- 2026-11-02
NVD
6.3
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.
- Record
CVE-2026-56764- CVSS 4.0
- 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 - CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-208
- Updated
- 2026-11-02
OSV
6.3
Hono - Timing Attack in basicAuth and bearerAuth Middleware
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.
- Record
CVE-2026-56764- CVSS 4.0
- 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 - Weakness
- CWE-208
- Updated
- 2026-11-02
Show 4 moreShow less
OSVGHSA-gq3j-xvxp-8hrf
3.7
Hono added timing comparison hardening in basicAuth and bearerAuth
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.
- Record
GHSA-gq3j-xvxp-8hrf- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-208
- Updated
- 2026-11-02
OSVRHSA-2026:47618
7.5
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
- Record
RHSA-2026:47618- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVRHSA-2026:47619
7.5
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
- Record
RHSA-2026:47619- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVCLSA-2026-1790413170 No score
TuxCare security update for hono (15 CVEs)
TuxCare rebuilt hono to address 15 CVEs. Fixed in 3.12.12-tuxcare.1.
- Record
CLSA-2026-1790413170- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
hononpm |
before 4.11.10 | 4.11.10 |
honoTuxCare:npm From an advisory covering 14 CVEs |
3.12.12-tuxcare.0 up to 3.12.12-tuxcare.1, plus listed versions 3.12.12 |
3.12.12-tuxcare.1 |
grafana13.1Red Hat:hummingbird:1 From an advisory covering 2 CVEs |
before 0:13.1.1-0.2.hum1 | 0:13.1.1-0.2.hum1 |
grafana12.4Red Hat:hummingbird:1 From an advisory covering 6 CVEs |
before 0:12.4.6-0.2.hum1 | 0:12.4.6-0.2.hum1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases, products | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-56764 is a medium vulnerability (CVSS 6.3) in Hono, published February 19, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.30%, the 22nd percentile. Fixed in hono 4.11.10.
References
github.com/honojs/hono/security/advisories/GHSA-gq3j-xvxp-8hrf
vulncheck.com/advisories/hono-timing-attack-in-basicauth-and-bearerauth-middleware
nvd.nist.gov/vuln/detail/CVE-2026-56764
github.com/advisories/GHSA-98q5-3v5r-qvfh
github.com/honojs/hono/commit/91def7cab654bad5eecc9270e6620d577971ff5e
github.com/honojs/hono/releases/tag/v4.11.10
Show 43 moreShow less
github.com/advisories/GHSA-gq3j-xvxp-8hrf
github.com/CVEProject/cvelistV5/tree/main/cves/2026/56xxx/CVE-2026-56764.json
github.com/honojs/hono
access.redhat.com/errata/RHSA-2026:47618
images.redhat.com
access.redhat.com/security/cve/CVE-2026-56764
access.redhat.com/security/updates/classification
access.redhat.com/security/cve/CVE-2026-42127
security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_47618.json
bugzilla.redhat.com/show_bug.cgi?id=2491449
cve.org/CVERecord?id=CVE-2026-42127
nvd.nist.gov/vuln/detail/CVE-2026-42127
grafana.com/security/security-advisories/cve-2026-42127
bugzilla.redhat.com/show_bug.cgi?id=2500893
cve.org/CVERecord?id=CVE-2026-56764
access.redhat.com/errata/RHSA-2026:47619
access.redhat.com/security/cve/CVE-2026-67213
access.redhat.com/security/cve/CVE-2026-67321
access.redhat.com/security/cve/CVE-2026-67312
access.redhat.com/security/cve/CVE-2026-67320
security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_47619.json
bugzilla.redhat.com/show_bug.cgi?id=2508406
cve.org/CVERecord?id=CVE-2026-67213
nvd.nist.gov/vuln/detail/CVE-2026-67213
github.com/ai/nanoid/commit/cb3626d0f3342fdf179cd425fd9c4fbb92c7d0e7
github.com/ai/nanoid/releases/tag/5.1.6
vulncheck.com/advisories/nanoid-before-infinite-loop-via-zero-size-in-customalphabet-and-customrandom
bugzilla.redhat.com/show_bug.cgi?id=2510007
cve.org/CVERecord?id=CVE-2026-67312
nvd.nist.gov/vuln/detail/CVE-2026-67312
github.com/axios/axios/security/advisories/GHSA-pmv8-rq9r-6j72
vulncheck.com/advisories/axios-before-denial-of-service-via-formtojson
bugzilla.redhat.com/show_bug.cgi?id=2509993
cve.org/CVERecord?id=CVE-2026-67320
nvd.nist.gov/vuln/detail/CVE-2026-67320
github.com/axios/axios/commit/df53d7dd99b202fb194217abd127ae6a630e70dc
github.com/axios/axios/security/advisories/GHSA-gcfj-64vw-6mp9
vulncheck.com/advisories/axios-before-prototype-pollution-via-node-http-adapter
bugzilla.redhat.com/show_bug.cgi?id=2510011
cve.org/CVERecord?id=CVE-2026-67321
nvd.nist.gov/vuln/detail/CVE-2026-67321
github.com/axios/axios/security/advisories/GHSA-hcpx-6fm6-wx23
vulncheck.com/advisories/axios-before-denial-of-service-via-maxdepth-bypass