Security advisory
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).
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-32050
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 07:26 UTC · Revision 1
Source evidence
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).
osv:CVE-2021-32050
Complete source record
{
"id": "23dd77ebf9cb6022a84f2ad1c01fc7a098948cd4a2f1e0da1314e5752f1bf3c1",
"url": "https://osv.dev/vulnerability/CVE-2021-32050",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-32050",
"summary": "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).",
"evidence": "osv:CVE-2021-32050",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-32050",
"aliases": [
"CVE-2021-32050",
"GHSA-vxvm-qww3-2fh7"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/mongodb/mongo-c-driver",
"type": "GIT",
"events": [
{
"introduced": "e1bf9e0ae933f1a09a0ad435632f330acafe2f18"
},
{
"fixed": "200a01bb208633fe3cf395d81acc1e19492d9de4"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:mongodb:*:*",
"range": [
{
"introduced": "1.0.0"
},
{
"fixed": "1.17.7"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"debian/1.17.6-1",
"1.17.6",
"debian/1.17.5-1",
"1.17.5",
"debian/1.17.4-1",
"1.17.4",
"debian/1.17.3-1",
"1.17.3",
"debian/1.17.2-1",
"1.17.2",
"1.17.1",
"debian/1.17.0-1",
"1.17.0",
"1.17.0-rc0",
"1.17.0-beta2",
"1.17.0-beta",
"1.11.0",
"1.9.0-rc1",
"1.9.0-rc0",
"1.7.0-rc0",
"1.6.0",
"1.6.0-rc0",
"1.5.0-rc4",
"1.5.0-rc3",
"1.5.0-rc2",
"1.5.0-rc1",
"1.5.0-rc0",
"1.4.0-beta1",
"1.3.0",
"1.3.0-rc0",
"1.1.11",
"1.1.10",
"1.1.9",
"1.1.8",
"1.1.7",
"1.1.6",
"1.1.5",
"1.1.4",
"1.1.2",
"1.1.0",
"1.1.0-rc0",
"1.0.2",
"1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32050.json"
}
},
{
"ranges": [
{
"repo": "https://github.com/mongodb/mongo-php-driver",
"type": "GIT",
"events": [
{
"introduced": "5da12f3aa0a7bb544ca0d9a98cbb8408ba5aece9"
},
{
"fixed": "8427113e92267ce1cbc5c1da2e7b389d58f66428"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:mongodb:php_driver:*:*:*:*:*:mongodb:*:*",
"range": [
{
"introduced": "1.0.0"
},
{
"fixed": "1.9.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"1.9.1",
"1.9.0",
"1.9.0-RC1",
"1.6.0RC1",
"1.6.0alpha3",
"1.6.0alpha2",
"1.6.0alpha1",
"1.5.0",
"1.4.0RC1",
"1.4.0beta1",
"1.3.1",
"1.3.0",
"1.3.0RC1",
"1.3.0beta2",
"1.3.0beta1",
"1.2.3",
"1.2.2",
"1.2.1",
"1.2.0",
"1.2.0alpha3",
"1.2.0alpha2",
"1.2.0alpha1",
"1.1.4",
"1.1.3",
"1.1.2",
"1.1.1",
"1.1.0",
"1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32050.json"
}
}
],
"modified": "2026-10-24T10:30:53.438618864Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2025/05/msg00027.html",
"https://security.netapp.com/advisory/ntap-20231006-0001/",
"https://jira.mongodb.org/browse/SWIFT-1229",
"https://jira.mongodb.org/browse/CDRIVER-3797",
"https://jira.mongodb.org/browse/CXX-2028",
"https://jira.mongodb.org/browse/NODE-3356",
"https://jira.mongodb.org/browse/PHPC-1869"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:mongodb:c\\+\\+:*:*:*:*:*:mongodb:*:*"
],
"vendor_product": "mongodb:c++",
"extracted_events": [
{
"range": [
{
"introduced": "1.0.0"
},
{
"fixed": "1.17.7"
}
],
"source": "CPE_RANGE"
}
]
},
{
"cpes": [
"cpe:2.3:a:mongodb:c_driver:*:*:*:*:*:mongodb:*:*"
],
"vendor_product": "mongodb:c_driver",
"extracted_events": [
{
"range": [
{
"introduced": "1.0.0"
},
{
"fixed": "1.17.7"
}
],
"source": "CPE_RANGE"
}
]
},
{
"cpes": [
"cpe:2.3:a:mongodb:node.js:*:*:*:*:*:mongodb:*:*"
],
"vendor_product": "mongodb:node.js",
"extracted_events": [
{
"range": [
{
"introduced": "3.6"
},
{
"fixed": "3.6.10"
},
{
"introduced": "4.0"
},
{
"fixed": "4.17.0"
},
{
"introduced": "5.0"
},
{
"fixed": "5.8.0"
}
],
"source": "CPE_RANGE"
}
]
},
{
"cpes": [
"cpe:2.3:a:mongodb:swift_driver:*:*:*:*:*:mongodb:*:*"
],
"vendor_product": "mongodb:swift_driver",
"extracted_events": [
{
"range": [
{
"introduced": "1.0.0"
},
{
"fixed": "1.1.1"
}
],
"source": "CPE_RANGE"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-32050",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 437919,
"published_at": "2023-08-29T16:15:08.423+00:00"
}