{"id":"GHSA-hgxw-5xg3-69jx","revision":"6a27efe3e0014f64b3fd026fae3ee1a0","records":[{"revision":"6a27efe3e0014f64b3fd026fae3ee1a0","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-hgxw-5xg3-69jx","aliases":["CVE-2024-32652"],"title":"@hono/node-server has Denial of Service risk when receiving Host header that cannot be parsed","description":"### Impact\n\nThe application hangs when receiving a Host header with a value that `@hono/node-server` can't handle well. Invalid values are those that cannot be parsed by the `URL` as a hostname such as an empty string, slashes `/`, and other strings.\n\nFor example, if you have a simple application:\n\n```ts\nimport { serve } from '@hono/node-server'\nimport { Hono } from 'hono'\n\nconst app = new Hono()\n\napp.get('/', (c) => c.text('Hello'))\n\nserve(app)\n```\n\nSending a request with a Host header with an empty value to it:\n\n```\ncurl localhost:3000/ -H \"Host: \"\n```\n\nThe results:\n\n```\nnode:internal/url:775\n    this.#updateContext(bindingUrl.parse(input, base));\n                                   ^\n\nTypeError: Invalid URL\n    at new URL (node:internal/url:775:36)\n    at newRequest (/Users/yusuke/work/h/159/node_modules/@hono/node-server/dist/index.js:137:17)\n    at Server.<anonymous> (/Users/yusuke/work/h/159/node_modules/@hono/node-server/dist/index.js:399:17)\n    at Server.emit (node:events:514:28)\n    at Server.emit (node:domain:488:12)\n    at parserOnIncoming (node:_http_server:1143:12)\n    at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17) {\n  code: 'ERR_INVALID_URL',\n  input: 'http:///'\n}\n```\n\n### Patches\n\nThe version `1.10.1` includes the fix for this issue. But, you should use `1.11.0`, which has other fixes related to this issue. https://github.com/honojs/node-server/issues/160 https://github.com/honojs/node-server/issues/161\n\n### Workarounds\n\nNothing. Upgrade your `@hono/node-server`.\n\n### References\n\nhttps://github.com/honojs/node-server/issues/159\n","state":0,"publishedAt":"2024-04-19T19:48:40+00:00","modifiedAt":"2026-09-10T03:50:11.3480496+00:00","affected":[{"ecosystem":"npm","name":"@hono/node-server","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.3.0"},{"kind":"fixed","version":"1.10.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/honojs/node-server/security/advisories/GHSA-hgxw-5xg3-69jx","https://nvd.nist.gov/vuln/detail/CVE-2024-32652","https://github.com/honojs/node-server/issues/159","https://github.com/honojs/node-server/issues/161","https://github.com/honojs/node-server/commit/306d98f02a8671a0a1fb91ac8fe7e281690c05af","https://github.com/honojs/node-server/commit/d847e60249fd8183ba0998bc379ba20505643204","https://github.com/honojs/node-server"],"sourceUrl":"https://github.com/advisories/GHSA-hgxw-5xg3-69jx","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-hgxw-5xg3-69jx","identifiers":["GHSA-hgxw-5xg3-69jx","CVE-2024-32652"]},"retained":false,"historicalAffected":[]}],"coverage":[]}