@hono/node-server can't handle "double dots" in URL
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.
Summary
@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`.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| honojs | node-server | 1.3.0 to before 1.4.1 | 1.4.1 | Patch available | CNA |
| — | @hono/node-server (npm) | 1.3.0 to before 1.4.1 | 1.4.1 | Patch available | GHSA-rjq5-w47x-x359 |
- node-server Vendorhonojs Affected 1.3.0 to before 1.4.1 Fixed in 1.4.1 Patch available CNA
- @hono/node-server (npm) Vendor— Affected 1.3.0 to before 1.4.1 Fixed in 1.4.1 Patch available GHSA-rjq5-w47x-x359
Remediation
- Fix · CNA node-server (honojs) Fixed in 1.4.1
- Fix · GHSA-rjq5-w47x-x359 @hono/node-server (npm) Fixed in 1.4.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-23340
- 2026-10-03 Alias added: GHSA-rjq5-w47x-x359
References
More honojs Node-server vulnerabilities
- TI-2024-21534 @hono/node-server contains Denial of Service risk when receiving Host header that cannot be parsed CVSS 3.1HIGH 7.5
- TI-2026-23231 @hono/node-server: Authorization bypass for protected static paths via encoded slashes in Serve Static Middleware CVSS 3.1HIGH 7.5
- TI-2026-28388 @hono/node-server has a middleware bypass via repeated slashes in serveStatic CVSS 3.1MEDIUM 5.3
Sources
- CVE-2024-23340 · CVE Program
- CVE-2024-23340 · NVD
- FIRST EPSS
- GHSA-rjq5-w47x-x359 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences