Improper Validation of Specified Quantity in Input Affecting hono package, versions >=4.5.1 <4.13.18


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.47% (33rd 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-23050690
  • published30 Nov 2026
  • disclosed26 Nov 2026
  • creditfizzbeom, caerrot, sumanene, ongteckwu, Pablo152, xpcmdshell

Introduced: 26 Nov 2026

NewCVE-2026-137485  (opens in a new tab)
CWE-1284  (opens in a new tab)

How to fix?

Upgrade hono to version 4.13.18 or higher.

Overview

hono is an Ultrafast web framework for the Edges

Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input via validator('json') and validator('form'), which match the full Content-Type header value against strict regular expressions. An attacker can format the Content-Type header with whitespace before a semicolon (e.g. application/json ; charset=utf-8), a trailing semicolon (e.g. multipart/form-data; boundary=x;), or an underscored parameter name (e.g. application/x-www-form-urlencoded; x_y=1) to cause the pattern match to fail. When the match fails, the middleware passes an empty object to the validation callback, while c.req.json() and c.req.parseBody() in the handler still read the full submitted body, allowing allow-list or required-field checks to be bypassed entirely.

Note: This is only exploitable when the application's validation callback accepts an empty object without returning an error.

References

CVSS Base Scores

version 4.0
version 3.1