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


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (18th 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 IDSNYK-JS-HONONODESERVER-6669947
  • published21 Apr 2024
  • disclosed19 Apr 2024
  • creditUnknown

Introduced: 19 Apr 2024

CVE-2024-32652  (opens in a new tab)
CWE-755  (opens in a new tab)

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: "

CVSS Scores

version 3.1