Hono: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static paths
### 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.
- Products
- hono
- Affected versions
- Not specified
- Fixed versions
- 4.13.11
- CVEs
- CVE-2026-109955, CVE-2026-111757
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 13:03 UTC · Revision 1
Source evidence
Hono: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static paths
core-osv · Original sourcePublished 20 Oct 2026, 14:36 UTC
### 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.
osv:GHSA-5r4p-p66f-jhc7
hono
Fixed versions: 4.13.11
Complete source record
{
"id": "600a4b6e3c21d02a8322a1a954ba5c3a0a7bf860c90e520e656d0af4e389293b",
"url": "https://osv.dev/vulnerability/GHSA-5r4p-p66f-jhc7",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Hono: `serveStatic` decodes the request path a second time, leading to bypass of middleware on static paths",
"summary": "### 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.",
"evidence": "osv:GHSA-5r4p-p66f-jhc7",
"products": [
{
"name": {
"value": "hono",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.13.11",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "GHSA-5r4p-p66f-jhc7",
"aliases": [
"CVE-2026-109955",
"CVE-2026-111757",
"GHSA-5r4p-p66f-jhc7"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "4.12.4"
},
{
"fixed": "4.13.11"
}
]
}
],
"package": {
"name": "hono",
"purl": "pkg:npm/hono",
"ecosystem": "npm"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-5r4p-p66f-jhc7/GHSA-5r4p-p66f-jhc7.json"
}
}
],
"modified": "2026-10-20T14:45:03.780823695Z",
"provider": "osv",
"references": [
"https://github.com/honojs/hono/security/advisories/GHSA-5r4p-p66f-jhc7",
"https://nvd.nist.gov/vuln/detail/CVE-2026-111757",
"https://github.com/honojs/hono/commit/8b05c774ef1555c70f5ba5e2991b7e77cc3635cc",
"https://github.com/honojs/hono",
"https://github.com/honojs/hono/releases/tag/v4.13.11"
],
"provider_metadata": {
"cwe_ids": [
"CWE-174"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2026-10-19T18:17:00Z",
"github_reviewed_at": "2026-10-20T14:36:11Z"
}
},
"related_cves": [
{
"value": "CVE-2026-109955",
"evidence": "/aliases"
},
{
"value": "CVE-2026-111757",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 389729,
"published_at": "2026-10-20T14:36:11+00:00"
}