@hono/node-server
2.1.9 · 17 Nov 2026MIT105.3M / weekRepositorynpmAtom feed
1.19.19 is the newest release of 1.x.
In short
1 breaking2 security
- Breaking
A request whose path contains a raw backslash is now rejected with
400 Bad Request. A percent-encoded backslash (%5C) and a backslash in the query string are still accepted.
Security
Fixes 1 advisory that affected 1.19.17
- Moderate@hono/node-server: Backslash in the request path is parsed as a path separator, bypassing path-based access control at a reverse proxyGHSA-jpvv-r467-5p4w · 12 Nov 2026Fixed in 1.19.18
1 advisory affects 1.19.18; 2.1.3 fixes them
- Moderate@hono/node-server: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static pathsGHSA-rmxm-3fg6-px4f · 28 Oct 2026Fixed in 2.1.3
Release note
Security fixes
This release includes a fix for the following security issue:
Backslash in the request path is parsed as a path separator, bypassing path-based access control at a reverse proxy
Affects: all requests. The raw request-target was passed to the WHATWG URL parser, which treats a backslash in the path as / and resolves .. segments, so /admin\secret reached the application as /admin/secret. A reverse proxy that forwards the backslash unchanged applied its path-based rules to the original path. GHSA-jpvv-r467-5p4w
A request whose path contains a raw backslash is now rejected with 400 Bad Request. A percent-encoded backslash (%5C) and a backslash in the query string are still accepted.
The same fix, together with two WebSocket fixes, ships in @hono/node-server v2.1.6. Users on 1.x who can upgrade to 2.x are encouraged to do so.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.