Loading advisory.
Loading advisory.
Hono vulnerable to arbitrary file access via serveStatic vulnerability
When using serveStatic together with route-based middleware protections (e.g. app.use('/admin/', ...)), inconsistent URL decoding allowed protected static resources to be accessed without authorization.
Published 2026-03-04 19:48 UTC · Modified 2026-09-10 03:50 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| hono | npm | < 4.12.4 | 4.12.4 | npm install hono@4.12.4 |
When using serveStatic together with route-based middleware protections (e.g. app.use('/admin/*', ...)), inconsistent URL decoding allowed protected static resources to be accessed without authorization.
The router used decodeURI, while serveStatic used decodeURIComponent. This mismatch allowed paths containing encoded slashes (%2F) to bypass middleware protections while still resolving to the intended filesystem path.
The routing layer preserved %2F as a literal string, while serveStatic decoded it into / before resolving the file path.
Example:
Request: /admin%2Fsecret.html
Router sees: /admin%2Fsecret.html → does not match /admin/*
Static handler resolves: /admin/secret.html
As a result, static files under the configured static root could be served without triggering route-based protections.
This only affects applications that both:
Protect subpaths using route-based middleware, and
Serve files from the same static root using serveStatic.
This does not allow access outside the static root and is not a path traversal vulnerability.
An unauthenticated attacker could bypass route-based authorization for protected static resources by supplying paths containing encoded slashes.
Applications relying solely on route-based middleware to protect static subpaths may have exposed those resources.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.006 on 2026-11-24 to 0.007 on 2026-11-30, over 3 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.006 | first score | v2026.06.15 |
| 2026-11-26 | 0.007 | 0.006 | v2026.06.15 |
| 2026-11-30 | 0.007 | 0.007 | v2026.06.15 |