GHSA-gjph-xf5q-6mfq

Suggest an improvement
Source
https://github.com/advisories/GHSA-gjph-xf5q-6mfq
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-gjph-xf5q-6mfq/GHSA-gjph-xf5q-6mfq.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gjph-xf5q-6mfq
Published
2020-09-03T15:46:02Z
Modified
2020-08-31T19:00:37Z
Summary
Denial of Service in @hapi/ammo
Details

Versions of @hapi/ammo prior to 3.1.2 or 5.0.1 are vulnerable to Denial of Service. The Range HTTP header parser has a vulnerability which will cause the function to throw a system error if the header is set to an invalid value. Because hapi is not expecting the function to ever throw, 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

Upgrade to version 3.1.2 or 5.0.1.

Database specific
{
    "cwe_ids":  [],
    "github_reviewed":  true,
    "github_reviewed_at":  "2020-08-31T19:00:37Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

npm / @hapi/ammo

Package

Name
@hapi/ammo
View open source insights on deps.dev
Purl
pkg:npm/%40hapi/ammo

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
3.1.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-gjph-xf5q-6mfq/GHSA-gjph-xf5q-6mfq.json"

npm / @hapi/ammo

Package

Name
@hapi/ammo
View open source insights on deps.dev
Purl
pkg:npm/%40hapi/ammo

Affected ranges

Type
SEMVER
Events
Introduced
4.0.0
Fixed
5.0.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-gjph-xf5q-6mfq/GHSA-gjph-xf5q-6mfq.json"