---
title: "GHSA-rmxm-3fg6-px4f: @hono/node-server: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static paths"
description: "Moderate severity. @hono/node-server: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static paths."
url: https://inlinr.com/advisories/GHSA-rmxm-3fg6-px4f
lang: en
---

[Packages](https://inlinr.com/packages) / [@hono/node-server](https://inlinr.com/packages/@hono/node-server) / [Security](https://inlinr.com/packages/@hono/node-server/security)

Moderate Vulnerability GHSA-rmxm-3fg6-px4f CVE-2026-118663 Published 28 Oct 2026

# @hono/node-server: \`serveStatic\` decodes the request path a second time, leading to bypass of middleware on static paths

Your version 

Affected releases · [@hono/node-server](https://inlinr.com/packages/@hono/node-server)

- 2.x 2.0.0 – 2.1.2 Fixed in 2.1.3
- 1.x 1.19.10 – 1.19.19 No fix on this line yet

On 2.x, the newest line:

```
npm install @hono/node-server@2.1.3
```

Every release on a timeline

2.x 

1. Affected

2.0.0 – 2.1.2  
15 releases
2. Fixed

2.1.3 – 2.1.11  
9 releases

1.x 

1. Not affected

1.0.0 – 1.19.9  
67 releases
2. Affected

1.19.10 – 1.19.19  
9 releases

110 stable releases of @hono/node-server, oldest to newest, one row per major.

## What happens

Summary

`serveStatic` decodes the request path a second time after Hono has already decoded it for routing. A crafted request can be routed as one path and served as another, so middleware mounted on a static prefix does not run for a file under that prefix.

Details

Hono decodes the request path once before routing. `serveStatic` decoded it again before resolving the file. With a malformed percent-encoded sequence, the first decode leaves part of the path encoded, the router matches the encoded form, and the second decode resolves the real directory. The file is still resolved inside the configured root; this is not a traversal outside it.

Impact

An unauthenticated attacker may reach static files without the middleware on their prefix running, for example an authentication check. This affects applications that mount middleware on part of the directory served by `serveStatic`. Applications that serve only public files are not affected.

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: low
- **Integrity**: none
- **Availability**: none

CVSS:3.1/​AV:N/​AC:L/​PR:N/​UI:N/​S:U/​C:L/​I:N/​A:N

## References

- [Reference](https://github.com/honojs/node-server/security/advisories/GHSA-rmxm-3fg6-px4f "https://github.com/honojs/node-server/security/advisories/GHSA-rmxm-3fg6-px4f")  
github.com/honojs/node-server/security/advisori…
- [Fix commit](https://github.com/honojs/node-server/commit/982179278529d5673812116b042829f27794966f "https://github.com/honojs/node-server/commit/982179278529d5673812116b042829f27794966f")  
9821792
- [Package](https://github.com/honojs/node-server "https://github.com/honojs/node-server")  
github.com/honojs/node-server
- [Reference](https://github.com/honojs/node-server/releases/tag/v2.1.3 "https://github.com/honojs/node-server/releases/tag/v2.1.3")  
github.com/honojs/node-server/releases/tag/v2.1…

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
