CVE-2021-32050
Some MongoDB Drivers may publish events containing authentication-related data to a command listener configured by an application
- Published
- Updated
- Reserved
- Assigned by
- mongodb
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).
Timeline
ID reserved
By mongodb
- 2 years later
· 2 years later
Published
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| mongodbCNA (assigner) | 3.1 | Medium4.2 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N |
| NVDNVD · Modified | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 0.65% · top 49% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.2.
Weakness
Affected products
MongoDB Inc · MongoDB C Driver
- affected 1.0.0 – < 1.17.7
MongoDB Inc · MongoDB C++ Driver
- affected 3.0.0 – < 3.7.0
MongoDB Inc · MongoDB PHP Driver
- affected 1.0.0 – < 1.9.2
MongoDB Inc · MongoDB Swift Driver
- affected 1.0.0 – < 1.1.1
MongoDB Inc · MongoDB Node.js Driver
- affected 3.6 – < 3.6.10
- affected 4.0 – < 4.17.0
- affected 5.0 – < 5.8.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Packagistmongodb/mongodbGHSA-vxvm-qww3-2fh7 (opens in a new tab)
- SwiftURLgithub.com/mongodb/mongo-swift-driverGHSA-vxvm-qww3-2fh7 (opens in a new tab)
- npmmongodbGHSA-vxvm-qww3-2fh7 (opens in a new tab)
References (7)
- https://jira.mongodb.org/browse/PHPC-1869 (opens in a new tab)x_transferred
- https://jira.mongodb.org/browse/CXX-2028 (opens in a new tab)x_transferred
- https://jira.mongodb.org/browse/SWIFT-1229 (opens in a new tab)x_transferred
- https://jira.mongodb.org/browse/CDRIVER-3797 (opens in a new tab)x_transferred
- https://jira.mongodb.org/browse/NODE-3356 (opens in a new tab)x_transferred
- https://security.netapp.com/advisory/ntap-20231006-0001/ (opens in a new tab)x_transferred
- https://lists.debian.org/debian-lts-announce/2025/05/msg00027.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-vxvm-qww3-2fh7 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2021-32050)Record last updated .