CVE-2026-126356: Hono: `validator('form')` skips validation for `multipart/form-data` requests with extra parameters
Published 2026-11-12 · Updated 2026-11-12 · Also known as GHSA-4h7h-rv7c-7m2v
Summary
The Hono validator('form') middleware incorrectly fails to detect multipart/form-data requests when the Content-Type header includes extra parameters or whitespace. Developers using this middleware for input validation should update their Hono dependency to ensure all form data is correctly captured and validated.
Who is affected
This vulnerability affects applications using validator('form') where the validation logic does not explicitly reject empty objects. By appending unexpected parameters to the Content-Type header, an attacker can bypass defined validation rules, potentially allowing unauthorized or malicious form fields to reach the application handler.
Exploitability
The vulnerability is rated with a CVSS 3.1 base score of 5.3, indicating moderate severity for network-based attacks with low complexity. The EPSS score of 0.004 indicates a low probability of exploitation, and it is not currently listed in the CISA KEV catalog.
Remediation
- Upgrade the hono package to version 4.13.16 or later.
- Ensure that the validation callback explicitly rejects empty objects if upgrading is not immediately possible.
- Perform secondary validation on the result of c.req.parseBody() or c.req.formData() within the application handler.
How to check your project
- Check the package.json or lock file to determine if the installed version of hono falls within the 4.5.1 to 4.13.15 range.
- Run 'npm list hono' or 'yarn list hono' to identify the specific version currently deployed in the project environment.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| npm | hono |
>= 4.5.1, < 4.13.16 | 4.13.16 | npm install [email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | Low |
| Availability | None |
FAQ
Does this issue affect application/x-www-form-urlencoded requests?
No, the vulnerability is strictly limited to the multipart/form-data handling logic.
What is the result of the bypass?
The validator middleware receives an empty object instead of the request body, effectively skipping any defined validation rules while still allowing the actual data to be parsed later in the handler.
Is there active exploitation of this vulnerability?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
Original advisory description
References
- WEB https://github.com/honojs/hono/security/advisories/GHSA-4h7h-rv7c-7m2v
- WEB https://github.com/honojs/hono/commit/d88fab372415277a9e540e895650943dd08eef4a
- PACKAGE https://github.com/honojs/hono
- WEB https://github.com/honojs/hono/releases/tag/v4.13.16
Source records: GHSA-4h7h-rv7c-7m2v (OSV.dev) · EPSS by FIRST, 2026-11-21.