GHSA-3wqh-h42r-x8fq: @hapi/content Denial of Service Vulnerability
HIGHGHSA-3wqh-h42r-x8fq is a HIGH denial of service vulnerability (General Security Weakness) affecting @hapi/content libraries in the npm ecosystem. The issue involves denial of service in @hapi/content. Remediation is available by upgrading affected packages to version 5.0.2.
GHSA-3wqh-h42r-x8fq at a Glance
How to Fix GHSA-3wqh-h42r-x8fq
To remediate this vulnerability, upgrade all affected @hapi/content dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @hapi/content@5.0.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @hapi/content
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-3wqh-h42r-x8fq, inspect your project dependencies using npm:
npm ls @hapi/content
Analyze the terminal output to locate any version of @hapi/content in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.2), your application is affected.
Note: The npm ls @hapi/content command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In @hapi/content, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-3wqh-h42r-x8fq Affected @hapi/content Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@hapi/content
|
npm |
< 5.0.2
|
5.0.2
|
References
Frequently Asked Questions
What is GHSA-3wqh-h42r-x8fq?
Which @hapi/content versions are affected?
What version fixes GHSA-3wqh-h42r-x8fq?
Is @hapi/content affected?
What CWE is associated with GHSA-3wqh-h42r-x8fq?
How can I check npm dependencies for GHSA-3wqh-h42r-x8fq?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3wqh-h42r-x8fq",
"modified" : "2025-09-25T22:29:15Z",
"published" : "2020-09-03T15:46:22Z",
"aliases" : [ ],
"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.\n\n\n## Recommendation\n\nUpgrade 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" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@hapi/content"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.0.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1476"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T19:00:42Z",
"nvd_published_at" : null
}
}