BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2021-20327 in Mongodb Libmongocrypt

Medium 6.8

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 render...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.16.8
EPSS0.2%
EPSS percentile6th
FixSee advisory

Exploitable from adjacent network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Mongodb Libmongocrypt 1.2.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-20327
BreachSpider IDBS-2021-GLOBAL-081280-M
CVSS vectorCVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Published2021-02-25
Last modified2026-09-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-295: CWE-295

Related attack patterns (CAPEC)

CAPEC-459 Creating a Rogue Certification Authority Certificate via CWE-295

CAPEC-475 Signature Spoofing by Improper Validation via CWE-295

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in the Node.js mongodb-client-encryption module allows for potential interception of traffic between the Node.js driver and the KMS service due to incorrect validation of the KMS server's certificate, compromising client-side field level encryption (CSFLE).

An attacker with a privileged network position could perform a man-in-the-middle (MITM) attack to intercept and potentially manipulate traffic between the Node.js application using the mongodb-client-encryption module and the Key Management Service (KMS). This could lead to the decryption of sensitive data.

Questions

What is CVE-2021-20327?

A vulnerability in the Node.js mongodb-client-encryption module allows for potential interception of traffic between the Node.js driver and the KMS service due to incorrect validation of the KMS server's certificate, compromising client-side field level encryption (CSFLE).

What is the CVSS score for CVE-2021-20327?

CVE-2021-20327 has CVSS 6.8 (Medium). Vector: CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N. EPSS: 0.2%.

Is CVE-2021-20327 actively exploited?

No confirmed active exploitation of CVE-2021-20327 as of 2026-09-18.

How do I remediate CVE-2021-20327?

Priority: HIGH. Advisory: https://jira.mongodb.org/browse/NODE-3125 PSIRT: [email protected]

What systems are affected by CVE-2021-20327?

CVE-2021-20327 affects Mongodb Libmongocrypt.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Mongodb","product":"Libmongocrypt","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-09-17.