CVE-2017-16013: Denial of Service via malformed accept-encoding header in hapi
7.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.55713%
CWE
Published
10/9/2018
Updated
9/7/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
hapi | npm | >= 15.0.0, <= 16.1.0 | 16.1.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper error handling in the accept-encoding
header processing. The key change in compression.js
shows the original implementation didn't handle errors from Accept.encoding()
, which would throw and crash the process
. The function internals.Compression.prototype.accept
is the direct point where malformed input was processed without validation. The request.js
changes show this function was called during request initialization, but the root vulnerability resides in the compression.js
implementation.