GHSA-3wqh-h42r-x8fq
NoneCVSS
—
EPSS
—
Published
Sep 3, 2020
CISA due date
—
Cloudanix analysis
A bug in a common web content handling library can let attackers knock an application offline by sending specially formatted data, and the fix is simply updating to a newer version of that library.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw permits specially crafted HTTP content-type headers or payloads to trigger excessive resource consumption or unhandled exceptions during parsing, resulting in service unavailability.
Why it matters to the business
Service outages interrupt application availability, degrade user experience, and require emergency response resources; the vulnerability has been public for over six years with no known in-the-wild exploitation.
How an attack unfolds
An unauthenticated attacker sends a crafted request containing a malicious content-type header or body to an application using the vulnerable @hapi/content parser; the parser enters an expensive or crashing code path and the server becomes unresponsive to legitimate traffic.
How to fix it
Upgrade @hapi/content to version 5.0.2 or later; for Alpaquita stream users, update to nodejs 20.11.1-r0 or newer packages that incorporate the fixed dependency.
How to confirm the fix worked
Inventory installed versions of @hapi/content across all Node.js projects and confirm none remain below 5.0.2; perform functional testing with known-good content-type headers after upgrade.
Typical attack path
- Identify an endpoint that processes incoming HTTP requests with content negotiation
- Craft a request containing a malformed or pathological content-type value
- Send the request to the target server
- Observe server CPU/memory exhaustion or process termination
- Repeat to sustain denial of service
How to detect it
Review web server access and error logs for sudden spikes in requests with unusual content-type headers around the time of any outage; correlate with process termination or high CPU events in application logs.
What your security team should do
- Prioritize upgrade of @hapi/content to 5.0.2 in all production and staging environments
- Add dependency version pinning and automated scanning to prevent future regressions
- Review any custom content-type parsing logic for similar denial-of-service patterns
The record
Denial of Service in @hapi/content
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | @hapi/content | 0 | 5.0.2 |
| npm | @hapi/subtext | 4.1.0 | 6.1.3 |
| npm | @hapi/subtext | 6.1.0 | 6.1.3 |
| npm | @hapi/subtext | 7.0.0 | 7.0.3 |
Related vulnerabilities
- GHSA-36hh-x5p5-jgc8 @hapi/content header parser has a parameter smuggling issue that allows upload-filter… Also affects @hapi/content
- CVE-2026-44974 @hapi/content header parser has a parameter smuggling issue that allows upload-filter… Also affects @hapi/content
- CVE-2026-35213 @hapi/content provided HTTP Content-* headers parsing. Also affects @hapi/content
- GHSA-jg4p-7fhp-p32p @hapi/content: Regular Expression Denial of Service (ReDoS) in HTTP header parsing Also affects @hapi/content
- GHSA-g9cg-h3jm-cwrc Prototype Pollution in @hapi/subtext Also affects @hapi/subtext