Skip to content

GHSA-9vrw-m88g-w75q Denial of Service in @hapi/accept

Unknown
Published
Updated
Exploit status
No public exploit known

Description

Versions of @hapi/accept prior to 3.2.4 or 5.0.1 are vulnerable to Denial of Service. The Accept-Encoding HTTP header parser has a vulnerability which will cause the function to throw a system error if the header contains some invalid values. Because hapi rethrows system errors (as opposed to catching expected application errors), the error is thrown all the way up the stack. If no unhandled exception handler is available, the application will exist, allowing an attacker to shut down services.

Recommendation

Upgrade to version 3.2.4 or 5.0.1.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
hapi @hapi/accept(npm) >= 3.2.0, < 3.2.4; >= 4.0.0, < 5.0.1 3.2.4, 5.0.1 Fixed

Affected products

ProductAffected versionsFixed in
hapi @hapi/accept(npm) >= 3.2.0, < 3.2.4 3.2.4
hapi @hapi/accept(npm) >= 4.0.0, < 5.0.1 5.0.1

References