# CVE-2026-39406: @hono/node-server has a middleware bypass via repeated slashes in serveStatic

> Attackers can bypass route-based authorization middleware to access protected static files by using repeated slashes in request paths.

- **Severity:** Medium 5.3 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 8 Apr 2026
- **Updated:** 8 Apr 2026
- **Also known as:** CLEANSTART-2026-JS42957, CLEANSTART-2026-VJ30424, CLSA-2026-1793191261, CLSA-2026-1793207176, CLSA-2026-1793209463, ECHO-2090-9c99-5200, GHSA-92pp-h63x-v22m, MINI-3gc3-696j-976f, MINI-3qfv-wx9v-mh6c, MINI-fvg4-w4xw-c5rx, MINI-h6wc-256f-chhv, MINI-m6xv-qv8j-vxj4, MINI-mmcq-6wgp-979w, MINI-pwfj-r7fr-84rj

## What is CVE-2026-39406?

CVE-2026-39406 is a medium-severity missing authorization vulnerability in honojs node-server, published on 8 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

@hono/node-server allows running the Hono application on Node.js. Prior to 1.19.13, a path handling inconsistency in serveStatic allows protected static files to be accessed by using repeated slashes (//) in the request path. When route-based middleware (e.g., /admin/*) is used for authorization, the router may not match paths containing repeated slashes, while serveStatic resolves them as normalized paths. This can lead to a middleware bypass. This vulnerability is fixed in 1.19.13.

Weakness: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

## Which versions are affected by CVE-2026-39406?

2 open source packages ship an affected version, including @hono/node-server. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `@hono/node-server` | npm | All versions | 1.19.13 |
| `@hono/node-server` | npm | All versions | 1.19.13 |

Products: Hono Node-Server.

## How do I fix CVE-2026-39406?

Upgrade @hono/node-server to 1.19.13 or later.

## Is CVE-2026-39406 being exploited?

There is no known exploitation of CVE-2026-39406 in the wild and no public exploit code.

## Other vulnerabilities in honojs node-server

- [CVE-2026-29087](https://insights.sbomify.com/CVE-2026-29087/): @hono/node-server: Authorization bypass for protected static paths via encoded slashes in Serve Static Middleware (high 7.5)
- [CVE-2024-32652](https://insights.sbomify.com/CVE-2024-32652/): @hono/node-server contains Denial of Service risk when receiving Host header that cannot be parsed (high 7.5)
- [CVE-2024-23340](https://insights.sbomify.com/CVE-2024-23340/): @hono/node-server can't handle "double dots" in URL (medium 5.3)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-39406 and fix it if it is affected.

What it is: CVE-2026-39406 is a medium-severity missing authorization vulnerability in honojs node-server, published on 8 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-39406 in the wild and no public exploit code.

Affected packages and fixed versions:
- @hono/node-server (npm): affected all versions; fixed in 1.19.13
- @hono/node-server (npm): affected all versions; fixed in 1.19.13

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-39406/ (Markdown: https://insights.sbomify.com/CVE-2026-39406/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-39406
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-39406
- OSV: https://osv.dev/vulnerability/CVE-2026-39406

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-39406/
Summaries are generated and may contain mistakes; the official description above is the record.
