Infinite loop 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 IDSNYK-HEX-HACKNEY-16876609
  • published26 May 2026
  • disclosed25 May 2026
  • creditPJUllrich

Introduced: 25 May 2026

NewCVE-2026-47066  (opens in a new tab)
CWE-835  (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 Infinite loop through the parse_entries/2 function in the Alt-Svc parser. An attacker can pin a scheduler at 100% CPU by sending an Alt-Svc response header whose first entry starts with a non-token byte such as !, @, =, ;, or .. The parser recurses on the same bytes without making progress, so a single malicious header from an attacker-controlled origin can hang the connection process and prevent normal request handling.

CVSS Base Scores

version 4.0
version 3.1