{"schemaVersion":3,"id":"CVE-2024-23340","aliases":["GHSA-rjq5-w47x-x359"],"status":"published","duplicateOf":null,"title":null,"description":"@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`.","dates":{"published":"2024-01-22T23:00:34.510Z","modified":"2025-05-30T14:21:51.423Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00722,"percentile":0.53401,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00722},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00722,"percentile":0.53401}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00722,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00722,"percentile":0.53401}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_HONOJS_NODE-SERVER","name":"Node Server","source":"github","url":"https://github.com/honojs/node-server/security/advisories/GHSA-rjq5-w47x-x359","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"hono","product":"node-server","name":"node-server","label":"node-server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.3.0, < 1.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.3.0, < 1.4.1","eol":null,"hubHref":"/vendor/hono/node-server"},{"vendor":"honojs","product":"node-server","name":"node-server","label":"node-server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.3.0, < 1.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.3.0, < 1.4.1","eol":null,"hubHref":"/vendor/honojs/node-server"},{"vendor":"@hono","product":"node-server","name":"@hono/node-server","label":"node-server","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@hono/node-server","purlType":"npm","versions":[{"text":"≥ 1.3.0, < 1.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.3.0, < 1.4.1","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/honojs/node-server/security/advisories/GHSA-rjq5-w47x-x359","label":"github.com/honojs/node-server/security/advisories/GHSA-rjq5-w47x-x359","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Exploit","Vendor Advisory"]},{"url":"https://github.com/honojs/node-server/commit/dd9b9a9b23e3896403c90a740e7f1f0892feb402","label":"github.com/honojs/node-server/commit/dd9b9a9b23e3896403c90a740e7f1f0892feb402","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch"]},{"url":"https://github.com/honojs/node-server/blob/8cea466fd05e6d2e99c28011fc0e2c2d3f3397c9/src/request.ts#L43-L45","label":"github.com/honojs/node-server/blob/8cea466fd05e6d2e99c28011fc0e2c2d3f3397c9/src/request.ts","hostname":"github.com","tags":["X Refsource MISC","WEB","Product"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23340","label":"nvd.nist.gov/vuln/detail/CVE-2024-23340","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/honojs/node-server","label":"github.com/honojs/node-server","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-01-22T23:00:34.510Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-05-30T14:21:51.423Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T19:27:08.818Z","stale":false,"partial":false}}