Allocation of Resources Without Limits or Throttling Affecting hackney package, versions >=2.0.0-beta.1 <4.0.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.67% (47th 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 Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-HEX-HACKNEY-16877833
  • published26 May 2026
  • disclosed25 May 2026
  • creditPJUllrich

Introduced: 25 May 2026

NewCVE-2026-47077  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade hackney to version 4.0.1 or higher.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through the await_response_loop in the HTTP/3 client. An attacker can keep a request hanging and exhaust heap memory by dribbling small response chunks just before each per-chunk timeout while the client buffers the entire body. This leaves applications using the non-streaming HTTP/3 response path stuck waiting indefinitely and eventually killed by out-of-memory conditions.

Workarounds

  • Use the streaming API for very large HTTP/3 responses instead of the non-streaming hackney_h3 response path, so the client does not buffer the whole body in memory and is less exposed to heap exhaustion from slow-drip responses.
  • Set the max_body_size option on HTTP/3 requests to a finite limit, so a peer cannot keep appending data indefinitely and drive the process to out-of-memory.

CVSS Base Scores

version 4.0
version 3.1