NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
📦
📦 npm🐘 Packagist📦 SwiftURL
Not in CISA KEV
MEDIUM severity

MongoDB Driver may publish events containing authentication-related dataGHSA-vxvm-qww3-2fh7

MEDIUMFix: mongodb/mongo-php-driver#1235

GHSA-vxvm-qww3-2fh7 is a medium-severity (CVSS 4.2) Information Exposure vulnerability in mongodb. A fix is available for mongodb — see the affected versions and patch details below.

Also known asCVE-2021-32050
Published
Updated
Affected
5 pkgs
Patched
5 / 5
Exploits
None indexed
Exploitation data as of Nov 9, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for GHSA-vxvm-qww3-2fh7.

EPSS Exploitation Probability

via FIRST.org ↗
0.6%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs51th percentile — riskier than 51% of all scored CVEsHighest risk
0.00%0.38%0.76%1.15%0.0%0.6%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

5 pkgs affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.

15Kother npm packages depend on this — each one inherits the vulnerability until it's patched upstream
mongodbnpm
21.3Mdownloads / week

Description

Some MongoDB Drivers may erroneously publish events containing authentication-related data to a command listener configured by an application. The published events may contain security-sensitive data when specific authentication-related commands are executed.

Without due care, an application may inadvertently expose this sensitive information, e.g., by writing it to a log file. This issue only arises if an application enables the command listener feature (this is not enabled by default).

This issue affects the MongoDB C Driver 1.0.0 prior to 1.17.7, MongoDB PHP Driver 1.0.0 prior to 1.9.2, MongoDB Swift Driver 1.0.0 prior to 1.1.1, MongoDB Node.js Driver 3.6 prior to 3.6.10, MongoDB Node.js Driver 4.0 prior to 4.17.0 and MongoDB Node.js Driver 5.0 prior to 5.8.0. This issue also affects users of the MongoDB C++ Driver dependent on the C driver 1.0.0 prior to 1.17.7 (C++ driver prior to 3.7.0).

Affected Packages

5 total 5 fixed
EcosystemPackageVulnerable rangeFix
📦npmmongodb≥ 3.6.0&&< 3.6.103.6.10npm install mongodb@3.6.10
📦npmmongodb≥ 4.0.0&&< 4.17.04.17.0npm install mongodb@4.17.0
📦npmmongodb≥ 5.0.0&&< 5.8.05.8.0npm install mongodb@5.8.0
🐘Packagistmongodb/mongodb≥ 1.0.0&&< 1.9.21.9.2composer require mongodb/mongodb:^1.9.2
📦SwiftURLgithub.com/mongodb/mongo-swift-driver≥ 1.0.0&&< 1.1.11.1.1

Affected Products

5 products · 7 configurations
Application
c drivermongodb
≥ 1.0.0 && < 1.17.7
range
Application
c\+\+mongodb
≥ 1.0.0 && < 1.17.7
range
Application
node.jsmongodb
≥ 5.0 && < 5.8.0
range
Application
php drivermongodb
≥ 1.0.0 && < 1.9.2
range
Application
swift drivermongodb
≥ 1.0.0 && < 1.1.1
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for mongodb, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update mongodb to 3.6.10 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-vxvm-qww3-2fh7 is resolved across your whole dependency graph.

  3. Workarounds

    Assume what was exposed is already known: rotate any credential, token or key that the affected component could return, restrict the endpoint to callers that genuinely need it, and strip sensitive fields from responses and error output at the boundary rather than relying on the client not to read them.

Frequently Asked Questions

Some MongoDB Drivers may erroneously publish events containing authentication-related data to a command listener configured by an application. The published events may contain security-sensitive data when specific authentication-related commands are executed. Without due care, an application may inadvertently expose this sensitive information, e.g., by writing it to a log file. This issue only arises if an application enables the command listener feature (this is not enabled by default). This issue affects the MongoDB C Driver 1.0.0 prior to 1.17.7, MongoDB PHP Driver 1.0.0 prior to 1.9.2, M
O3 Security · Impact-Aware SCA

Is GHSA-vxvm-qww3-2fh7 in your dependencies?

Find it across npm, Packagist, SwiftURL, including transitive dependencies.

MongoDB Driver may publish events containing…