Advisory

GHSA-9vrw-m88g-w75q

Also known as: None

Summary

Denial of Service in @hapi/accept

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-09-03 15:45 UTC
Modified
2020-08-31 19:00 UTC

Affected packages and fixes

@hapi/accept

npm · All systems

Affected

  • introduced 3.2.0, fixed 3.2.4 (semver)

Fixed versions

3.2.4

Fix

@hapi/accept

npm · All systems

Affected

  • introduced 4.0.0, fixed 5.0.1 (semver)

Fixed versions

5.0.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences