CVE-2021-32050
MongoDB Driver may publish events containing authentication-related data
Reported by mongodb · Published August 29, 2023
github.com/mongodb/mongo-swift-driver is fixed in 1.1.1 (GitHub Packages)
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).
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/mongodb/mongo-swift-driver | GitHub Packages | 1.1.1 |
| mongodb/mongodb | Packagist | 1.9.2 |
| mongodb | npm | 5.8.0, 4.17.0, 3.6.10 |
| github.com/mongodb/mongo-swift-driver | swiftpackageindex.com | 1.1.1 |
| php_driver | mongodb | 1.9.2 |
| MongoDB Node.js Driver | MongoDB Inc | 5.8.0, 4.17.0, 3.6.10 |
| node.js | mongodb | 5.8.0, 4.17.0, 3.6.10 |
| MongoDB PHP Driver | MongoDB Inc | 1.9.2 |
| swift_driver | mongodb | 1.1.1 |
| MongoDB C++ Driver | MongoDB Inc | 3.7.0 |
| MongoDB Swift Driver | MongoDB Inc | 1.1.1 |
| MongoDB C Driver | MongoDB Inc | 1.17.7 |
2 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| MongoDB Inc | MongoDB C Driver | 1.0.0 |
| MongoDB Inc | MongoDB C++ Driver | 3.0.0 |
| MongoDB Inc | MongoDB PHP Driver | 1.0.0 |
| MongoDB Inc | MongoDB Swift Driver | 1.0.0 |
| MongoDB Inc | MongoDB Node.js Driver | 3.6, 4.0, 5.0 |
| MongoDB Inc | MongoDB Node.js Driver | 3.6, 4.0, 5.0 |
| mongodb | mongodb | 1.0.0 |
| MongoDB Inc | MongoDB C++ Driver | 3.0.0 |
| MongoDB Inc | MongoDB Swift Driver | 1.0.0 |
| MongoDB Inc | MongoDB PHP Driver | 1.0.0 |
| github.com | mongodb/mongo-swift-driver | 1.0.0 |
| MongoDB Inc | MongoDB C Driver | 1.0.0 |
| npm | mongodb | 4.0.0, 5.0.0, 3.6.0 |
Timeline
- Aug 29, 2023 CVE Published
- Aug 30, 2023 EPSS Score (30 in total, the first dated here)
- Mar 9, 2026 Security Advisory
- Aug 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-32050
vulnetix vdb fixes CVE-2021-32050
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-32050/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-32050 advisory
- https://github.com/advisories/GHSA-vxvm-qww3-2fh7 advisory
- https://github.com/mongodb/mongo-php-driver/pull/1235 patch
- https://github.com/mongodb/mongo-swift-driver/pull/643 patch
- https://github.com/mongodb/mongo-php-driver/commit/4495de8313c0d313e4dde906fc7aedf998ee3748 patch
- https://github.com/mongodb/node-mongodb-native/commit/8c8b4c3b8c55f10fb96f63d3bbfa5d408b4ed7d0 patch
- https://security.netapp.com/advisory/ntap-20231006-0001 advisory
- https://lists.debian.org/debian-lts-announce/2025/05/msg00027.html url