Improper Control of Generation of Code ('Code Injection') Affecting hono package, versions <3.11.7


Severity

0.0
medium
0
10

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.05% (21st percentile)

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-6129121
  • published 26 Apr 2024
  • disclosed 14 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 Improper Control of Generation of Code ('Code Injection') due to the use of TrieRouter or when matching patterns not supported by the default RegExpRouter. An attacker can influence the behavior of the application by injecting unintended parameters when deleting REST API resources.

Note:

This is only exploitable if a privileged user interacts with the application in a way that allows for parameter override.

Workaround

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

CVSS Scores

version 3.1
Expand this section

Snyk

4.2 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    Low
  • Availability (A)
    Low
Expand this section

NVD

4.3 medium