Skip to content

CVE-2026-47676 Hono: app.mount() strips mount prefix using undecoded path, causing incorrect routing for percent-encoded paths

MediumCVSS 5.3 EPSS 0.26%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

Description

Hono is a Web application framework that provides support for any JavaScript runtime. Prior to 4.12.21, app.mount() strips the mount prefix from the incoming request path using the raw URL pathname, while route matching is performed against the percent-decoded path. This inconsistency causes the prefix to be stripped at the wrong position when the path contains percent-encoded multi-byte characters, resulting in the mounted sub-application receiving an incorrect path. This vulnerability is fixed in 4.12.21.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
hono < 4.12.21 4.12.21 Fixed
npm hono(npm) < 4.12.21 4.12.21 Fixed
honojs hono = < 4.12.21 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
honojs hono = < 4.12.21 No fix listed
npm hono(npm) < 4.12.21 4.12.21
hono < 4.12.21 4.12.21

References