Arbitrary Code Injection Affecting hono package, versions <3.11.7


0.0
medium
0
10

Snyk CVSS

    Attack Complexity High
    User Interaction Required

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 0.05% (21st percentile)
Expand this section
NVD
4.3 medium

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-HONO-6129070
  • published 15 Dec 2023
  • disclosed 15 Dec 2023
  • credit Unknown

How to fix?

Upgrade hono to version 3.11.7 or higher.

Overview

hono is an Ultrafast web framework for the Edges

Affected versions of this package are vulnerable to Arbitrary Code Injection via the TrieRouter process. An attacker can manipulate the path parameters to override named path parameter values from previous requests, potentially leading to unintended behavior or access to privileged operations.

Note:

This is only exploitable if the application uses TrieRouter explicitly or matches a pattern not supported by the default RegExpRouter.

Workaround

This vulnerability can be mitigated by avoiding the direct use of TrieRouter.