Vulnerability GHSA-v8w9-8mx6-g223

Medium Risk
MEDIUM RISK
CVSS Score: 4.8
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
6 months ago
March 11, 2026 at 12:31 AM UTC
Hono vulnerable to Prototype Pollution possible through __proto__ key allowed in parseBody({ dot: true })
0.0.1 - 4.12.6
0.0.1 - 4.12.6

Summary

Hono vulnerable to Prototype Pollution possible through __proto__ key allowed in parseBody({ dot: true })

Details

Summary

When using parseBody({ dot: true }) in HonoRequest, specially crafted form field names such as __proto__.x could create objects containing a __proto__ property.

If the parsed result is later merged into regular JavaScript objects using unsafe merge patterns, this may lead to prototype pollution in the target object.

Details

The parseBody({ dot: true }) feature supports dot notation to construct nested objects from form field names.

In previous versions, the __proto__ path segment was not filtered. As a result, specially crafted keys such as __proto__.x could produce objects containing __proto__ properties.

While this behavior does not directly modify Object.prototype within Hono itself, it may become exploitable if the parsed result is later merged into regular JavaScript objects using unsafe merge patterns.

Impact

Applications that merge parsed form data into regular objects using unsafe patterns (for example recursive deep merge utilities) may become vulnerable to prototype pollution.

Impacted packages

Timeline

Published
6 months ago
March 11, 2026 at 12:31 AM UTC
Fixed (4.12.7)
6 months ago
March 10, 2026 at 12:02 PM UTC
Last Modified
1 hour ago
October 02, 2026 at 10:45 PM UTC