
Cloud Vulnerability DB
A community-led vulnerabilities database
TrieRouter looked up the handler of a route by the HTTP method name on a plain object. When the method of a request was the name of an inherited property such as __proto__, the router wrote a property to Object.prototype. As a result, later requests in the same process could fail until the process was restarted.
TrieRouter keeps the handlers of each route in an object keyed by the HTTP method. The object had the default prototype, so a method name such as __proto__ returned an inherited value instead of nothing. The router then treated this value as a matched handler and added a property to it.
For __proto__, the value is Object.prototype. The added property is enumerable, so it appears in every plain object in the process. Parts of Hono that iterate over plain objects, such as response header handling, then throw an error.
This issue arises when TrieRouter is in use and a method name chosen by the client reaches the router. The default Hono uses TrieRouter when the registered routes are not supported by RegExpRouter. Most runtimes and HTTP/1.1 parsers reject such method names, but they can reach the router over HTTP/2 on Node.js or through the Method Override Middleware.
An unauthenticated client may make later requests fail with a single request. This may lead to:
hono/method-override. Applications on Cloudflare Workers and Bun are not affected unless they use hono/method-override.Source: NVD
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."