Vulnerabilities in pkg:npm/@hapi/accept
PACKAGEGHSA-9vrw-m88g-w75q is a HIGH denial of service vulnerability (General Security Weakness) affecting @hapi/accept libraries in the npm ecosystem. The issue involves denial of service in @hapi/accept. Remediation is available by upgrading affected packages to version 3.2.4, 5.0.1.
pkg:npm/@hapi/accept
Vulnerability advisories affecting package pkg:npm/@hapi/accept. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-9vrw-m88g-w75q | - | HIGH | Denial of Service in @hapi/accept |
GHSA-9vrw-m88g-w75q at a Glance
How to Fix GHSA-9vrw-m88g-w75q
To remediate this vulnerability, upgrade all affected @hapi/accept 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/accept@3.2.4
npm install @hapi/accept@5.0.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @hapi/accept
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-9vrw-m88g-w75q, inspect your project dependencies using npm:
npm ls @hapi/accept
Analyze the terminal output to locate any version of @hapi/accept in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.4), your application is affected.
Note: The npm ls @hapi/accept 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/accept, 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-9vrw-m88g-w75q Affected @hapi/accept Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@hapi/accept
|
npm |
≥ 3.2.0
< 3.2.4
|
3.2.4
|
|
@hapi/accept
|
npm |
≥ 4.0.0
< 5.0.1
|
5.0.1
|
References
Frequently Asked Questions
What is GHSA-9vrw-m88g-w75q?
Which @hapi/accept versions are affected?
What version fixes GHSA-9vrw-m88g-w75q?
Is @hapi/accept affected?
What CWE is associated with GHSA-9vrw-m88g-w75q?
How can I check npm dependencies for GHSA-9vrw-m88g-w75q?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9vrw-m88g-w75q",
"modified" : "2020-08-31T19:00:40Z",
"published" : "2020-09-03T15:45:53Z",
"aliases" : [ ],
"summary" : "Denial of Service in @hapi/accept",
"details" : "Versions of `@hapi/accept` prior to 3.2.4 or 5.0.1 are vulnerable to Denial of Service. The Accept-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 3.2.4 or 5.0.1.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@hapi/accept"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.2.0"
}, {
"fixed" : "3.2.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@hapi/accept"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "5.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1475"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T19:00:40Z",
"nvd_published_at" : null
}
}