Live threats

All CVEs / Mongodb

CVE-2021-20327Mongodb Client Encryption

Medium 6.8 No auth needed

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Mongodb Client Encryption.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
mongodbmongodb_client_encryption1.2.0

Official sources

References

Links published by the sources. Open them with care.