CVE-2026-137485: Hono 4.5.1 before 4.13.18 Validation Bypass via Content-Type Formatting
Hono from 4.5.1 before 4.13.18 contains a validation bypass vulnerability in validator('json') and validator('form') that allows unauthenticated attackers to skip validation by formatting Content-Type parameters differently. Attackers can add whitespace before semicolons, trailing semicolons, or underscored parameter names so validators receive empty objects while handlers still read rejected fields.
Affected Software
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications using npm/hono versions from 4.5.1 up to, but not including, 4.13.18 are affected if they rely on validator('json') or validator('form') to validate request data.
What does an attacker need to exploit the bypass?
An unauthenticated attacker only needs network access to a reachable endpoint using the affected validators. They can format Content-Type parameters with whitespace before semicolons, trailing semicolons, or underscored parameter names to cause validation to receive an empty object.
What is the impact of a successful bypass?
Validation can be skipped while the handler still reads fields that the validator would have rejected. This can allow attacker-controlled rejected fields to reach application handler logic.
How can I determine whether an endpoint may be affected?
Review endpoints using validator('json') or validator('form') and test Content-Type headers with whitespace before semicolons, trailing semicolons, or underscored parameter names. An affected endpoint may show an empty object to the validator while its handler can still access submitted fields.