VDB
Sign up
HIGH

GHSA-rc8h-3fv6-pxv8

Denial of Service in hapi

Quick fix

GHSA-rc8h-3fv6-pxv8 — hapi: upgrade to the fixed version with the command below.

npm install hapi@11.1.3

Details

Versions of `hapi` prior to 11.1.3 are affected by a denial of service vulnerability.

The vulnerability is triggered when certain input is passed into the If-Modified-Since or Last-Modified headers.

This causes an 'illegal access' exception to be raised, and instead of sending a HTTP 500 error back to the sender, hapi will continue to hold the socket open until timed out (default node timeout is 2 minutes).

## Recommendation

Update to v11.1.3 or later

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/hapi
Introduced in: 0Fixed in: 11.1.3
Fixnpm install hapi@11.1.3

References