CVE-2021-32050
JavaScript vulnerability analysis and mitigation

Overview

CVE-2021-32050 is a security vulnerability affecting multiple MongoDB Drivers where events containing authentication-related data may be erroneously published to a command listener configured by an application. The vulnerability was discovered internally and disclosed in August 2023. The affected versions include 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 versions 3.6 prior to 3.6.10, 4.0 prior to 4.17.0, and 5.0 prior to 5.8.0, as well as MongoDB C++ Driver prior to 3.7.0 (NVD Database).

Technical details

The vulnerability occurs when security-sensitive data from authentication-related commands is exposed through command listener events. This issue only manifests when an application explicitly enables the command listener feature, which is not enabled by default. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) by NIST with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, though MongoDB's own assessment rates it at 4.2 (MEDIUM) with vector CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N. The vulnerability is classified under CWE-532 (Insertion of Sensitive Information into Log File) (NVD Database).

Impact

The primary impact of this vulnerability is the potential disclosure of sensitive information. If exploited, an application may inadvertently expose security-sensitive data, particularly when writing command listener events to log files. This could lead to the compromise of authentication-related information (MongoDB JIRA).

Mitigation and workarounds

Fixed versions have been released for all affected drivers: MongoDB C Driver 1.17.7, PHP Driver 1.9.2, Swift Driver 1.1.1, Node.js Driver 3.6.10/4.17.0/5.8.0, and C++ Driver 3.7.0. Users are advised to upgrade to these or later versions to address the vulnerability. Since the issue only affects applications with enabled command listeners, disabling this feature can serve as a temporary workaround (MongoDB JIRA).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22787HIGH8.7
  • JavaScriptJavaScript
  • html2pdf.js
NoYesJan 14, 2026
CVE-2026-22820MEDIUM6.3
  • JavaScriptJavaScript
  • outray
NoYesJan 14, 2026
CVE-2026-22819MEDIUM5.9
  • JavaScriptJavaScript
  • outray
NoYesJan 14, 2026
CVE-2026-22036LOW3.7
  • JavaScriptJavaScript
  • node-undici
NoYesJan 14, 2026
GHSA-73rr-hh4g-fpgxLOWN/A
  • JavaScriptJavaScript
  • diff
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management