# GHSA-5854-jvxx-2cg9: Denial of Service in content

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-03T15:46:57.000Z
- Modified: 2025-09-29T20:49:54.000Z

## Description

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`.

(As written by GitHub Advisory Database.)

## Affected

- content (npm): up to 4.0.6

## References

- <https://github.com/hapijs/content/compare/v4.1.0...v4.1.1> (web)
- <https://github.com/hapijs/subtext> (package)
- <https://www.npmjs.com/advisories/1478> (web)

## Sources

- GitHub Advisory Database: [GHSA-5854-jvxx-2cg9](https://github.com/advisories/GHSA-5854-jvxx-2cg9), CC-BY-4.0, modified 2025-09-29

---

Page: https://cve.day/GHSA-5854-jvxx-2cg9 · Whole record: https://cve.day/GHSA-5854-jvxx-2cg9.json · Rebuilt by cve.day 2026-11-25T22:56:44.141Z
