{"id":"CVE-2024-23340","published":"2024-01-22T23:00:34Z","modified":"2025-05-30T14:21:51Z","title":"@hono/node-server can't handle \"double dots\" in URL","vendor":"honojs","product":"node-server","tier":"tail","description":{"text":"@hono/node-server is an adapter that allows users to run Hono applications on Node.js. Since v1.3.0, @hono/node-server has used its own Request object with `url` behavior that is unexpected. In the standard API, if the URL contains `..`, here called \"double dots\", the URL string returned by Request will be in the resolved path. However, the `url` in @hono/node-server's Request as does not resolve double dots, so `http://localhost/static/.. /foo.txt` is returned. This causes vulnerabilities when using `serveStatic`. Modern web browsers and a latest `curl` command resolve double dots on the client side, so this issue doesn't affect those using either of those tools. However, problems may occur if accessed by a client that does not resolve them. Version 1.4.1 includes the change to fix this issue. As a workaround, don't use `serveStatic`.\n\n","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00722,"percentile":0.54907,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/honojs/node-server/security/advisories/GHSA-rjq5-w47x-x359","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/honojs/node-server/commit/dd9b9a9b23e3896403c90a740e7f1f0892feb402","tags":["x_refsource_MISC"]},{"url":"https://github.com/honojs/node-server/blob/8cea466fd05e6d2e99c28011fc0e2c2d3f3397c9/src/request.ts#L43-L45","tags":["x_refsource_MISC"]}],"priority":{"score":14.7,"factors":[{"name":"EPSS percentile","points":10.98},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"honojs","affectedVersions":[{"vendor":"honojs","product":"node-server","versions":[">= 1.3.0, < 1.4.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-05-08T15:34:31.017406Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@hono/node-server","vulnerableRanges":[">=1.3.0, <1.4.1"],"patched":["1.4.1"],"from":["GHSA-rjq5-w47x-x359"],"provenance":"source"}],"summary":{"text":"The @hono/node-server adapter (honojs node-server, versions from 1.3.0 onward) returns request URLs that do not resolve \"..\" path segments, which breaks path handling in applications using its serveStatic helper. An unauthenticated remote attacker can exploit this with a crafted request such as one containing \"/static/.. /foo.txt\", provided the client does not itself resolve double dots, since modern browsers and current curl do; no user interaction or special configuration is described beyond using serveStatic.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:37Z"},"euvd":{"id":"EUVD-2024-0418","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-honojs-node-server-cve-2024-23340","children":[{"from":"CVE-2024-23340","to":"CVE-2024-32652","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@hono/node-server","fromFixed":"1.4.1","toFixed":"1.10.1","daysApart":88},{"kind":"same-code","provenance":"machine","files":["src/request.ts"],"commits":["https://github.com/honojs/node-server/commit/dd9b9a9b23e3896403c90a740e7f1f0892feb402","https://github.com/honojs/node-server/commit/d847e60249fd8183ba0998bc379ba20505643204","https://github.com/honojs/node-server/commit/306d98f02a8671a0a1fb91ac8fe7e281690c05af"],"basis":"rarely changed file"}]},{"from":"CVE-2024-23340","to":"CVE-2026-126210","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/request.ts"],"commits":["https://github.com/honojs/node-server/commit/dd9b9a9b23e3896403c90a740e7f1f0892feb402","https://github.com/honojs/node-server/commit/3868998a805ae79216535ad3986c1e7228dee313","https://github.com/honojs/node-server/commit/fb97395ec36af66567c76976e741110b02804d1c"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2024-23340","published":"2024-01-22","fixed":"1.4.1","kev":false},{"cve":"CVE-2024-32652","published":"2024-04-19","fixed":"1.10.1","kev":false},{"cve":"CVE-2026-29087","published":"2026-03-06","fixed":"1.19.10","kev":false},{"cve":"CVE-2026-39406","published":"2026-04-08","fixed":"1.19.13","kev":false}],"package":"npm:@hono/node-server"}}