Advisory

GHSA-3wqh-h42r-x8fq

Also known as: None

Summary

Denial of Service in @hapi/content

Details

Versions of @hapi/content prior to 4.1.1 and 5.0.1 are vulnerable to Denial of Service. The Content-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 5.0.2. Versions 4.1.1 and 5.0.1 are fixed but only available for direct download through the repository.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-09-03 15:46 UTC
Modified
2025-09-25 22:29 UTC

Affected packages and fixes

@hapi/content

npm · All systems

Affected

  • introduced 0, fixed 5.0.2 (semver)

Fixed versions

5.0.2

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