{"id":"CVE-2026-56764","revision":null,"records":[{"revision":"bf2359cea16d4aea98aa94f2a7cc310d","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-56764","aliases":[],"title":"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.","state":0,"publishedAt":"2026-07-15T11:25:32.814+00:00","modifiedAt":"2026-07-15T13:50:24.7+00:00","affected":[{"ecosystem":"Vendor product","name":"Hono","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Hono\",\n                    \"product\": \"Hono\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageURL\": \"pkg:npm/hono\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"4.11.10\"\n                        },\n                        {\n                            \"version\": \"4.11.10\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"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","score":6.3,"severity":"MEDIUM"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","score":3.7,"severity":"LOW"}],"references":["https://github.com/honojs/hono/security/advisories/GHSA-gq3j-xvxp-8hrf","https://www.vulncheck.com/advisories/hono-timing-attack-in-basicauth-and-bearerauth-middleware"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-56764","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-56764","identifiers":["CVE-2026-56764"]},"retained":false,"historicalAffected":[]},{"revision":"2b071864c2c64876b45206227a558c8b","observedAt":"2026-10-25T14:19:10.848+00:00","statement":{"source":"nvd","id":"CVE-2026-56764","aliases":[],"title":"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 ch…","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.","state":0,"publishedAt":"2026-07-15T12:18:15.44+00:00","modifiedAt":"2026-10-24T22:10:00.21+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · disclosure@vulncheck.com · Secondary","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/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","score":6.3,"severity":"MEDIUM"},{"system":"CVSS 3.1 · disclosure@vulncheck.com · Secondary","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","score":3.7,"severity":"LOW"}],"references":["https://github.com/honojs/hono/security/advisories/GHSA-gq3j-xvxp-8hrf","https://www.vulncheck.com/advisories/hono-timing-attack-in-basicauth-and-bearerauth-middleware"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-56764","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-208"],"productCriteria":[],"sourceDates":{"published":"2026-07-15T12:18:15.440","lastModified":"2026-10-24T22:10:00.210"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-56764","identifiers":["CVE-2026-56764"]},"retained":false,"historicalAffected":[]},{"revision":"bc84526916d747bca772b8796104b198","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-gq3j-xvxp-8hrf","aliases":["CVE-2026-56764"],"title":"Hono added timing comparison hardening in basicAuth and bearerAuth","description":"## Summary\n\nThe `basicAuth` and `bearerAuth` middlewares previously used a comparison that was not fully timing-safe.\n\nThe `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.\n\nThe implementation has been updated to use a safer comparison method.\n\n\n## Details\n\nThe issue was caused by the use of normal string equality (`===`) when comparing hash values inside the `timingSafeEqual` function.\n\nIn 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.\n\nUnder very specific and controlled conditions, this behavior could theoretically allow timing-based analysis.\n\nThe implementation has been updated to:\n\n- Avoid early termination during comparison\n- Use a constant-time-style comparison method\n\n## Impact\n\nThis issue is unlikely to be exploited in normal environments.\n\nIt may only be relevant in highly controlled situations where precise timing measurements are possible.\n\nThis change is considered a security hardening improvement. Users are encouraged to upgrade to the latest version.","state":0,"publishedAt":"2026-02-19T20:15:59+00:00","modifiedAt":"2026-09-10T03:50:35.1126152+00:00","affected":[{"ecosystem":"npm","name":"hono","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"4.11.10"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/honojs/hono/security/advisories/GHSA-gq3j-xvxp-8hrf","https://github.com/honojs/hono/commit/91def7cab654bad5eecc9270e6620d577971ff5e","https://github.com/honojs/hono","https://github.com/honojs/hono/releases/tag/v4.11.10"],"sourceUrl":"https://github.com/advisories/GHSA-gq3j-xvxp-8hrf","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-gq3j-xvxp-8hrf","identifiers":["GHSA-gq3j-xvxp-8hrf","CVE-2026-56764"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-10-26T23:35:40.1579758+00:00","complete":true,"records":1758,"lastAttemptAt":"2026-10-26T23:35:40.1579758+00:00","lastSuccessAt":"2026-10-26T23:35:40.3040109+00:00","error":null,"lastVerifiedAt":"2026-10-26T23:35:40.3040118+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-5ba1945314e042c2ced14b33f3680fa71692812d925544312b218f5eb8a26e71-3bf7196e32e776c741f2a25a322f304e4a0ccffc94e5ee1b2b39477207e0d312","complete":true,"records":414808,"lastAttemptAt":"2026-10-26T23:35:39.633691+00:00","lastSuccessAt":"2026-10-26T23:35:39.4790556+00:00","error":null,"lastVerifiedAt":"2026-10-26T23:35:39.633691+00:00","snapshotPublishedAt":"2026-10-26T23:20:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-43321610382942b8ad8c85917eab1546","complete":false,"records":4735,"lastAttemptAt":"2026-10-26T23:36:08.7201967+00:00","lastSuccessAt":"2026-10-24T23:18:49.862+00:00","error":"InvalidDataException","lastVerifiedAt":"2026-10-24T23:18:49.862+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":0,"expectedIdentifiers":13477},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-10-26T23:35:40.1579758+00:00","complete":true,"records":1093,"lastAttemptAt":"2026-10-26T23:35:40.1579758+00:00","lastSuccessAt":"2026-10-26T23:35:40.3048784+00:00","error":null,"lastVerifiedAt":"2026-10-26T23:35:40.3048788+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-1ba6061a29124e19b1d3d5d18f0c93d7","complete":false,"records":13416,"lastAttemptAt":"2026-10-26T23:36:06.5216484+00:00","lastSuccessAt":"2026-10-26T23:36:06.509+00:00","error":null,"lastVerifiedAt":"2026-10-26T23:36:06.509+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13077,"expectedIdentifiers":13477},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-c3121b113ecd88f1c92ccfa0ec9757ddc8386e4c12afd2597450b815744f800a","complete":true,"records":9779,"lastAttemptAt":"2026-10-26T23:35:39.9463604+00:00","lastSuccessAt":"2026-10-26T15:37:14.3083004+00:00","error":null,"lastVerifiedAt":"2026-10-26T23:35:39.9463604+00:00","snapshotPublishedAt":"2026-10-26T14:48:41+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-bad5d31e7f6a5e3d338e11d8789069b63620a403f927730769688b42f768e4f6","complete":true,"records":1965,"lastAttemptAt":"2026-10-26T23:35:39.6792416+00:00","lastSuccessAt":"2026-10-26T16:35:43.1460623+00:00","error":null,"lastVerifiedAt":"2026-10-26T23:35:39.6792416+00:00","snapshotPublishedAt":"2026-10-26T16:18:29+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-a393d8fe0ae8408f3e4cab413b76047090c8e4a3c0a186c79edf33c9a3d3af95","complete":true,"records":2995,"lastAttemptAt":"2026-10-26T23:35:40.0527218+00:00","lastSuccessAt":"2026-10-26T14:35:47.9640893+00:00","error":null,"lastVerifiedAt":"2026-10-26T23:35:40.0527218+00:00","snapshotPublishedAt":"2026-10-26T14:18:55+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-2c2579bb03487537529e2b647fd2d9950cfc0fec1a9832dba33e322b8dcbe369","complete":true,"records":230812,"lastAttemptAt":"2026-10-26T23:35:39.7934308+00:00","lastSuccessAt":"2026-10-26T21:37:26.5810298+00:00","error":null,"lastVerifiedAt":"2026-10-26T23:35:39.7934308+00:00","snapshotPublishedAt":"2026-10-26T21:33:12+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null}]}