Advisory

GHSA-5854-jvxx-2cg9

Also known as: None

Summary

Denial of Service in content

Details

Versions of content 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

This package is deprecated and is now maintained as @hapi/content. Please update your dependencies to use @hapi/content.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-09-03 15:46 UTC
Modified
2025-09-29 20:49 UTC

Affected packages and fixes

content

npm · All systems

Affected

  • introduced 0, last affected 4.0.6 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

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