CVE-2021-20327
MEDIUM 6.8CVSS 3.1mongodb-client-encryption vulnerable to Improper Certificate Validation
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
- Published
- 25 Feb 2021
- Last modified
- 17 Sep 2026
- Assigned by
- cna@mongodb.com
- NVD status
- Analyzed
- Weakness
- CWE-295
- Also known as
- GHSA-rjmf-p882-645m
- Sources
- NVDJSONOSV GHSA-rjmf-p882-645mJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | cna@mongodb.com (Secondary) | CVSS 3.1 | MEDIUM 6.4 | CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:A/AC:M/Au:N/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mongodb | mongodb_client_encryptioncpe:2.3:a:mongodb:mongodb_client_encryption:1.2.0:*:*:*:*:node.js:*:* |
= 1.2.0 | |
| OSV | npm | mongodb-client-encryption | >= 1.2.0, < 1.2.1 | 1.2.1 |
References
- https://jira.mongodb.org/browse/NODE-3125 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-20327 · ADVISORY
- https://github.com/mongodb/libmongocrypt/commit/76365515ff8754b9f705e56428dd0d7efa7f541b · WEB
- https://github.com/mongodb/libmongocrypt · PACKAGE
- https://www.npmjs.com/advisories/1660 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 25 Feb 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 12 Apr 2021)