GitHub Advisoryadvisory · npm
GHSA-v8w9-8mx6-g223 Hono vulnerable to Prototype Pollution possible through __proto__ key allowed in parseBody({ dot: true })
MEDIUM
Official page ↗
- Aliases
- CVE-2026-56763
- Ecosystem
- npm
- Packages
- hono
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- Weaknesses
- CWE-1321
- Reviewed
- 2026-03-11
Affected packages
• npm hono: < 4.12.7 → fixed in 4.12.7
Description
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.
Related
Alias · CVE (1)
- CVE-2026-56763 Hono before 4.12.7 allows __proto__ key in parseBody with dot option enabled, permitting specially crafted form field names to create… vulnerability
Weakness · CWE (1)
- CWE-1321 Improperly Controlled Modification of Object Prototype Attributes weakness
References
- https://github.com/honojs/hono/security/advisories/GHSA-v8w9-8mx6-g223 web
- https://nvd.nist.gov/vuln/detail/CVE-2026-56763 advisory
- https://github.com/honojs/hono/commit/ef902257e0beacbb83d2a9549b3b83e03514a6fe web
- https://github.com/honojs/hono package
- https://www.vulncheck.com/advisories/hono-prototype-pollution-via-proto-key-in-parsebody-with-dot-option web