GHSA-rmxm-3fg6-px4f

Suggest an improvement
Source
https://github.com/advisories/GHSA-rmxm-3fg6-px4f
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-rmxm-3fg6-px4f/GHSA-rmxm-3fg6-px4f.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-rmxm-3fg6-px4f
Aliases
  • CVE-2026-118663
Published
2026-10-28T21:05:00Z
Modified
2026-10-28T21:15:04Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
@hono/node-server: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static paths
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-174"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-10-28T21:05:00Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

npm / @hono/node-server

Package

Name
@hono/node-server
View open source insights on deps.dev
Purl
pkg:npm/%40hono/node-server

Affected ranges

Type
SEMVER
Events
Introduced
1.19.10
Fixed
2.1.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-rmxm-3fg6-px4f/GHSA-rmxm-3fg6-px4f.json"