Information Exposure Affecting mongodb package, versions >=3.6.0 <3.6.10 >=4.0.0 <4.17.0 >=5.0.0 <5.8.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.13% (49th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-MONGODB-5871303
  • published 30 Aug 2023
  • disclosed 29 Aug 2023
  • credit Daria Pardue, Kevin Albertson, Wan Bachtiar

How to fix?

Upgrade mongodb to version 3.6.10, 4.17.0, 5.8.0 or higher.

Overview

mongodb is an official MongoDB driver for Node.js.

Affected versions of this package are vulnerable to Information Exposure via the command listener feature. When it is enabled (not the default setting), some drivers may inadvertently publish events containing sensitive authentication-related data. An attacker can gain access to this sensitive information by monitoring these published events.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
4.2 medium
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    High
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    None
  • Availability (A)
    None
Expand this section

NVD

7.5 high