CVE-2021-20327Mongodb Client Encryption
Medium 6.8 No auth needed
Follow: this CVE · Mongodb · Mongodb Client Encryption We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 3.1
- 6.8
- EPSS
- 0.2% probability of exploitation in 30 days · percentile 11
- Auth required
- No
- Published
- Feb 25, 2021
- Updated
- Sep 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-295
- Vector
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
What happens
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
What to do
- Apply the vendor's security update for Mongodb Client Encryption.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | mongodb-client-encryption |
≥ 1.2.0 < 1.2.1 |
1.2.1 |
npm install mongodb-client-encryption@1.2.1 |
Per OSV / GitHub Advisories (GHSA-rjmf-p882-645m). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mongodb | mongodb_client_encryption | 1.2.0 |
Official sources
References
Links published by the sources. Open them with care.
- jira.mongodb.org Vendor Advisory