Improper Handling of Exceptional Conditions Affecting @hono/node-server package, versions >=1.3.0 <1.10.1


0.0
high

Snyk CVSS

    Attack Complexity Low
    Availability High

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 0.05% (15th 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-HONONODESERVER-6669947
  • published 21 Apr 2024
  • disclosed 19 Apr 2024
  • credit Unknown

How to fix?

Upgrade @hono/node-server to version 1.10.1 or higher.

Overview

@hono/node-server is a Node.js Adapter for Hono

Affected versions of this package are vulnerable to Improper Handling of Exceptional Conditions in the newRequest() function in listener.ts, which fails with ERR_INVALID_URL on invalid Host: header values, including empty string and /. This allows attackers to trigger denial of service.

Note: The maintainers recommend upgrading to 1.11.0 to fix all issues related to this vulnerability.

PoC

curl localhost:3000/ -H "Host: "