Vulnerability DatabaseGHSA-656w-x92q-369m

GHSA-656w-x92q-369m: 
JavaScript vulnerability analysis and mitigation

Summary

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.

Details

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.

Impact

An unauthenticated client may make later requests fail with a single request. This may lead to:

  • Error responses for JSON responses and for many other responses until the process is restarted The attacker cannot choose the name or the value of the added property. This issue affects applications that use TrieRouter and accept arbitrary method names, for example with HTTP/2 on Node.js or with hono/method-override. Applications on Cloudflare Workers and Bun are not affected unless they use hono/method-override.

Source: NVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-3qjc-mqvq-rch9HIGH7.6
  • JavaScript logoJavaScript
  • @mikro-orm/knex
NoYesNov 27, 2026
GHSA-j4pj-2xg4-35f6HIGH7.4
  • JavaScript logoJavaScript
  • @mikro-orm/mariadb
NoYesNov 27, 2026
GHSA-vrvp-5qx2-7xcmMEDIUM6.5
  • JavaScript logoJavaScript
  • @mikro-orm/knex
NoYesNov 27, 2026
GHSA-9phx-3fcw-32vfLOW3.7
  • JavaScript logoJavaScript
  • saxen
NoYesNov 27, 2026
GHSA-288x-p79m-78v5LOW3.7
  • JavaScript logoJavaScript
  • @mikro-orm/knex
NoYesNov 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management