Insufficiently Controlled Parser Differential Affecting hono package, versions >=4.5.1 <4.13.16


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.39% (34th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-HONO-22549655
  • published14 Nov 2026
  • disclosed12 Nov 2026
  • creditNicholas Hamilton

Introduced: 12 Nov 2026

NewCVE-2026-126356  (opens in a new tab)
CWE-1471  (opens in a new tab)

How to fix?

Upgrade hono to version 4.13.16 or higher.

Overview

hono is an Ultrafast web framework for the Edges

Affected versions of this package are vulnerable to Insufficiently Controlled Parser Differential via the multipartRegex pattern in src/validator/validator.ts, which only matches a multipart/form-data Content-Type carrying exactly one boundary parameter. When a request includes any additional legal parameter (such as charset) or extra whitespace after the ;, the regex fails to match, causing the validator('form') middleware to pass an empty object to the validation callback instead of the parsed form fields. 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(), effectively bypassing any allow-list or required-field checks the validator was intended to enforce.

Note: This is only exploitable when the application uses validator('form') with multipart/form-data requests and the validation callback does not explicitly reject an empty object.

Workaround

Reject an empty object in the validator('form') callback, or validate the result of await c.req.parseBody() directly in the handler.

CVSS Base Scores

version 4.0
version 3.1