CVE-2024-23340: honojs node-server · Path Traversal
Affects honojs node-serverSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium · fixed in 1.4.1 : update honojs node-server when convenient.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 53% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.4.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 22 Jan 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
AI-suggested
European organizations should immediately upgrade @hono/node-server to version 1.4.1 or later, where the vulnerability is fixed by proper URL path resolution. Until upgrading is possible, avoid using the serveStatic middleware or implement additional server-side validation to sanitize and normalize URL paths before serving static files. Employ strict input validation and canonicalization to prevent directory traversal attempts. Additionally, restrict file system permissions so that the web server process has access only to necessary directories, limiting the impact of any traversal attempts. Implement web application firewalls (WAFs) with rules to detect and block requests containing suspicious '..' sequences in URLs. Regularly audit and monitor access logs for anomalous requests that may indicate exploitation attempts. Finally, educate developers about secure handling of URL paths and the importance of using updated dependencies.
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`.