CVE-2021-20327
published medium CVSS 3.1 · 6.4MongoDB Node.js client side field level encryption library may not be validating KMS certificate
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MongoDB Inc. | — | MongoDB Node.js Driver mongodb-client-encryption module1.2.0 · Other versions: unaffected | Affected | Not stated | mongodb |
Description
A specific version of the Node.js mongodb-client-encryption module does not perform correct validation of the KMS server’s certificate. This vulnerability in combination with a privileged network position active MITM attack could result in interception of traffic between the Node.js driver and the KMS service rendering client-side field level encryption (CSFLE) ineffective. This issue was discovered during internal testing and affects mongodb-client-encryption module version 1.2.0, which was available from 2021-Jan-29 and deprecated in the NPM Registry on 2021-Feb-04. This vulnerability does not impact driver traffic payloads with CSFLE-supported key services from applications residing inside the AWS, GCP, and Azure nework fabrics due to compensating controls in these environments. This issue does not impact driver workloads that don’t use Field Level Encryption. This issue affect MongoDB Node.js Driver mongodb-client-encryption module version 1.2.0
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.4 / 10
- Severity
- medium
- Provider
- mongodb · cna
- Vector string
- CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MongoDB Inc. | MongoDB Node.js Driver mongodb-client-encryption module | 1.2.0 (affected)Default: unaffected | mongodb · cna |
Weaknesses
1- CWE-295 CWE-295 Improper Certificate Validation
References
1Provider assertions
2mongodb · cna
MongoDB Node.js client side field level encryption library may not be validating KMS certificate
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- cad758d65237975732a08adf00d557145545f0ce55e5e50feffd8214382f8407
- Ingested
- 23 Sep 2026, 07:52:16 UTC
- Source record
- Official CVE record