{"id":"CVE-2017-16013","aliases":["EUVD-2018-0581","GHSA-cqjg-whmm-8gv6"],"status":"published","title":"Denial of Service via malformed accept-encoding header in hapi","description":"hapi is a web and services application framework. When hapi \u003e= 15.0.0 \u003c= 16.1.0 encounters a malformed `accept-encoding` header an uncaught exception is thrown. This may cause hapi to crash or to hang the client connection until the timeout period is reached.","severity":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01559,"percentile":0.75401,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20","CWE-400"],"published":"2018-06-04T19:00:00Z","modified":"2026-10-20T10:48:15Z","fixes":[{"ecosystem":"npm","package":"hapi","fixed_in":["16.1.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"hapi","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"15.0.0"},{"last_affected":"16.1.0"},{"fixed":"16.1.1"}]}]},{"source":"osv","ecosystem":"npm","package":"hapi","ranges":[{"type":"SEMVER","events":[{"introduced":"15.0.0"},{"fixed":"16.1.1"}]}]}],"products":[{"vendor":"hackerone","product":"hapi node module"},{"vendor":"hapijs","product":"hapi"}],"references":[{"url":"https://nodesecurity.io/advisories/335","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://github.com/hapijs/hapi/issues/3466","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16013","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-cqjg-whmm-8gv6","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/335","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2017-16013","description":"hapi is a web and services application framework. When hapi \u003e= 15.0.0 \u003c= 16.1.0 encounters a malformed `accept-encoding` header an uncaught exception is thrown. This may cause hapi to crash or to hang the client connection until the timeout period is reached.","status":"published","published":"2018-06-04T19:00:00Z","modified":"2024-09-17T04:09:41.605Z","cwes":["CWE-400"],"updated_at":"2026-11-02T14:33:21.453505Z"}],"euvd":[{"id":"EUVD-2018-0581","description":"hapi is a web and services application framework. When hapi \u003e= 15.0.0 \u003c= 16.1.0 encounters a malformed `accept-encoding` header an uncaught exception is thrown. This may cause hapi to crash or to hang the client connection until the timeout period is reached.","status":"published","published":"2018-06-04T19:00:00Z","modified":"2024-09-17T04:09:41Z","updated_at":"2026-11-03T00:28:25.314109Z"}],"ghsa":[{"id":"GHSA-cqjg-whmm-8gv6","title":"Denial of Service via malformed accept-encoding header in hapi","description":"Affected versions of `hapi` will crash or lock the event loop when a malformed `accept-encoding` header is recieved.\n\n\n## Recommendation\n\nUpdate to version 16.1.1 or later.","status":"published","published":"2018-10-09T00:57:28Z","modified":"2023-09-07T20:33:06Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:37:03.287418Z"}],"nvd":[{"id":"CVE-2017-16013","description":"hapi is a web and services application framework. When hapi \u003e= 15.0.0 \u003c= 16.1.0 encounters a malformed `accept-encoding` header an uncaught exception is thrown. This may cause hapi to crash or to hang the client connection until the timeout period is reached.","status":"published","published":"2018-06-04T19:29:00.88Z","modified":"2026-06-17T01:08:38.483Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-400","CWE-20"],"updated_at":"2026-11-02T14:04:17.638656Z"}],"osv":[{"id":"CVE-2017-16013","description":"hapi is a web and services application framework. When hapi \u003e= 15.0.0 \u003c= 16.1.0 encounters a malformed `accept-encoding` header an uncaught exception is thrown. This may cause hapi to crash or to hang the client connection until the timeout period is reached.","status":"published","published":"2018-06-04T19:29:00.88Z","modified":"2026-10-20T10:48:15.519633Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:04.853379Z"},{"id":"GHSA-cqjg-whmm-8gv6","title":"Denial of Service via malformed accept-encoding header in hapi","description":"Affected versions of `hapi` will crash or lock the event loop when a malformed `accept-encoding` header is recieved.\n\n\n## Recommendation\n\nUpdate to version 16.1.1 or later.","status":"published","published":"2018-10-09T00:57:28Z","modified":"2023-11-08T03:58:59.647182Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T15:46:45.28161Z"}]}}
