MEDIUM · CVSS 3.1 5.3 EPSS 0.4% · 34th percentile CWE-1471CWE-20

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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 vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityLow
AvailabilityNone

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
### Summary `validator('form')` only recognizes a `multipart/form-data` `Content-Type` that carries nothing but a single `boundary` parameter. A request with another legal parameter, such as `charset`, or with extra whitespace after the `;` is not recognized as a form. The validation callback then receives an empty object, while `c.req.parseBody()` still parses the body as a form. ### Details The check that decides whether a request body is a form was written as a strict pattern over the whole `Content-Type` value. Any parameter list that does not look exactly like `; boundary=...` fails the check. When it fails, the middleware does not read the body and passes an empty object to the validation callback. If the callback accepts an empty object, the request proceeds to the handler, which can still read all submitted fields through `c.req.parseBody()` or `c.req.formData()`. `application/x-www-form-urlencoded` is not affected. Only the `multipart/form-data` branch has the strict pattern. This issue arises when an application relies on `validator('form')` to reject or restrict fields and the validation callback does not fail on an empty object. ### Impact An unauthenticated client can send form fields that the `form` validator never sees, by adding a legal parameter to the `Content-Type` header. This may lead to: - Allow-list or required-field checks in the validator being skipped - Fields the application intended to reject reaching the handler This issue affects applications that use `validator('form')` with `multipart/form-data` requests and whose validation callback accepts an empty object. ### Workarounds Reject an empty object in the `validator('form')` callback, or validate the result of `await c.req.parseBody()` in the handler.

References

Source records: GHSA-4h7h-rv7c-7m2v (OSV.dev) · EPSS by FIRST, 2026-11-21.