{"id":"GHSA-gq3j-xvxp-8hrf","revision":"bc84526916d747bca772b8796104b198","records":[{"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":[]}