GHSA-mh5c-679w-hh4r: Mongodb Denial of Service Vulnerability
HIGHGHSA-mh5c-679w-hh4r is a HIGH denial of service vulnerability (General Security Weakness) affecting Mongodb libraries in the npm ecosystem. The issue involves denial of service in mongodb. Remediation is available by upgrading affected packages to version 3.1.13.
GHSA-mh5c-679w-hh4r at a Glance
How to Fix GHSA-mh5c-679w-hh4r
To remediate this vulnerability, upgrade all affected Mongodb 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 mongodb@3.1.13
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls mongodb
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-mh5c-679w-hh4r, inspect your project dependencies using npm:
npm ls mongodb
Analyze the terminal output to locate any version of Mongodb in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.13), your application is affected.
Note: The npm ls mongodb 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 Mongodb, 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-mh5c-679w-hh4r Affected Mongodb Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mongodb
|
npm |
< 3.1.13
|
3.1.13
|
References
Frequently Asked Questions
What is GHSA-mh5c-679w-hh4r?
Which Mongodb versions are affected?
What version fixes GHSA-mh5c-679w-hh4r?
Is mongodb affected?
What CWE is associated with GHSA-mh5c-679w-hh4r?
How can I check npm dependencies for GHSA-mh5c-679w-hh4r?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mh5c-679w-hh4r",
"modified" : "2020-08-31T18:51:01Z",
"published" : "2020-09-03T21:12:01Z",
"aliases" : [ ],
"summary" : "Denial of Service in mongodb",
"details" : "Versions of `mongodb` prior to 3.1.13 are vulnerable to Denial of Service. The package fails to properly catch an exception when a collection name is invalid and the DB does not exist, crashing the application.\n\n\n## Recommendation\n\nUpgrade to version 3.1.13 or later.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "mongodb"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.1.13"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1203"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:51:01Z",
"nvd_published_at" : null
}
}