GHSA-mh5c-679w-hh4r: Mongodb Denial of Service Vulnerability

HIGH
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-mh5c-679w-hh4r
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Mongodb
Package Ecosystem npm
Published Date
Last Updated

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.

mongodb fixed: 3.1.13
npm install mongodb@3.1.13
Verify Direct and Transitive Dependencies

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

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. ## Recommendation Upgrade to version 3.1.13 or later.

GHSA-mh5c-679w-hh4r Affected Mongodb Versions

1 component(s)
Fixed Versions:
3.1.13
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?
GHSA-mh5c-679w-hh4r is a security vulnerability in Mongodb involving Denial of Service in mongodb under General Security Weakness.
Which Mongodb versions are affected?
Affected versions include releases prior to 3.1.13 across affected packages: mongodb.
What version fixes GHSA-mh5c-679w-hh4r?
Upgrading to 3.1.13 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mongodb affected?
Yes, mongodb is affected in releases prior to 3.1.13. Upgrade your dependency to 3.1.13 or later.
What CWE is associated with GHSA-mh5c-679w-hh4r?
GHSA-mh5c-679w-hh4r is classified under General Security Weakness.
How can I check npm dependencies for GHSA-mh5c-679w-hh4r?
Run the dependency tree command: 'npm ls mongodb'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}