CVE-2026-137485 in Honoinfo

Summary

by MITRE • 11/26/2026

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.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 11/27/2026

The vulnerability identified in Hono versions prior to 4.13.18 represents a critical validation bypass flaw within the framework's request handling mechanisms, specifically affecting the json and form body parsers. This issue stems from an inconsistency between how the middleware validates incoming data and how subsequent route handlers process that same data. The core of the problem lies in the parsing logic for Content-Type headers associated with JSON or form-encoded payloads. When a client submits a request containing these content types, Hono's validator functions are designed to parse the body based on standard MIME type parameters. However, the implementation fails to strictly enforce canonical formatting rules for these parameters, allowing attackers to manipulate the header string in ways that cause the validation layer to perceive an empty or invalid payload while the underlying handler successfully extracts and processes the actual submitted fields.

From a technical perspective, this discrepancy arises because the validator component performs strict checks on the structure of the Content-Type header before proceeding with body parsing. If the header contains non-standard formatting such as whitespace inserted immediately before semicolons separating parameters, trailing semicolons at the end of the type definition, or parameter names prefixed with underscores, the validation logic may incorrectly determine that no valid data is present or fail to map the fields correctly into its internal representation. Consequently, the validator returns an empty object or a null result, effectively skipping any defined schema checks or input sanitization rules attached to those validators. In contrast, the lower-level body parser used by the route handlers operates with more lenient parsing logic that adheres closer to RFC standards for MIME types, thereby successfully extracting and populating the request body data despite the malformed header.

This architectural inconsistency creates a significant security gap where unauthenticated attackers can bypass authentication or authorization checks that rely on these validators. By crafting requests with specifically formatted Content-Type headers, an attacker can submit malicious payloads such as SQL injection strings, cross-site scripting vectors, or arbitrary file paths without triggering any validation errors. The application proceeds to execute the route handler logic using this unchecked data, leading to potential remote code execution, unauthorized access to sensitive resources, or data integrity violations depending on how the downstream handlers utilize the input. This type of vulnerability is particularly dangerous because it exploits the trust placed in middleware layers and can often evade basic security testing tools that do not account for header formatting nuances.

In terms of industry classification, this flaw aligns with CWE-20 Improper Input Validation, as the application fails to adequately sanitize or validate user-supplied input before processing it. Furthermore, it relates to CWE-798 Use of Hard-coded Credentials if the bypass allows access to protected endpoints without proper authentication tokens being validated against the expected schema. From an offensive security standpoint, this technique mirrors aspects of ATT&CK T1190 Exploit Public-Facing Application, where attackers leverage specific implementation flaws in web applications to gain unauthorized entry. The ability to manipulate Content-Type parameters is a known vector for bypassing WAF rules and application-level filters that rely on rigid parsing expectations.

To mitigate this vulnerability, organizations running Hono versions between 4.5.1 and 4.13.17 must upgrade immediately to version 4.13.18 or later, where the validation logic has been hardened to reject non-canonical Content-Type headers that could lead to parsing discrepancies. For environments unable to patch immediately, a temporary workaround involves implementing custom middleware at the earliest stage of the request pipeline to normalize and strictly validate the Content-Type header before it reaches any validators or handlers. This normalization process should strip unnecessary whitespace, remove trailing semicolons, and reject parameter names containing underscores if they are not part of the expected schema. Additionally, developers should avoid relying solely on framework-provided validators for security-critical checks; instead, implementing redundant validation layers at both the middleware level and within individual route handlers can provide defense in depth against such bypass techniques.

Responsible

VulnCheck

Reservation

11/26/2026

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

EPSS

0.00468

KEV

no

Activities

very low

Sources

Want to know what is going to be exploited?

We predict KEV entries!