Skip to main content
VulnerabilityPublished Updated

@hono/node-server · Node server: Node.js Adapter for Hono: Path traversal in `serve-static` on Windows via encoded backslash (`%5C`)

Affects @hono/node-serverSource GCVE Database

0

CVSS 5.9 Medium : upgrade to 2.0.5 when convenient.

Data as of 15 Sep 2026, 06:23 UTC

CVSS 3.1 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 2.0.5
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

What to do

Upgrade @hono/node-server to 2.0.5.

Affected software

ProductAffectedFixed in
npm@hono/node-serverAffected
  • <2.0.5
Fixed in
  • 2.0.5

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available for this vulnerability. Users should upgrade to version 2.0.5 or later (and 1.19.15 or later if applicable) of the @hono/node-server package to remediate this issue. No additional mitigation steps are required if the patch is applied.

Description

A path traversal vulnerability exists in the Node.js Adapter for Hono's serve-static middleware on Windows. An attacker can use an encoded backslash (%5C) in the URL path to bypass prefix-mounted middleware protections and read static files within the configured root directory. The vulnerability does not allow escaping outside the root directory and affects Windows hosts only. It impacts versions prior to 2.0.5 and 1.19.15 of the @hono/node-server package. The vulnerability has a medium severity with a CVSS score of 5.9.

References

Community reviews

Loading reviews…