CVE-2021-20327
JavaScript vulnerability analysis and mitigation

Overview

A specific version of the Node.js mongodb-client-encryption module (version 1.2.0) was identified with a security vulnerability related to improper certificate validation. The vulnerability was discovered during internal testing and was available from January 29, 2021, until it was deprecated in the NPM Registry on February 4, 2021 (NVD).

Technical details

The vulnerability stems from incorrect validation of the KMS server's certificate in the mongodb-client-encryption module. The issue is tracked as CWE-295 (Improper Certificate Validation) with a CVSS v3.1 base score of 6.8 (MEDIUM) and vector string CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N (NVD, MongoDB JIRA).

Impact

When exploited, this vulnerability could allow an attacker with a privileged network position to perform an active MITM (Man-in-the-Middle) attack, potentially intercepting traffic between the Node.js driver and the KMS service. This would effectively render the client-side field level encryption (CSFLE) ineffective (NVD).

Exploitability

The vulnerability requires an attacker to have a privileged network position to perform an active MITM attack. However, applications residing inside AWS, GCP, and Azure network fabrics are protected due to existing compensating controls in these environments. Additionally, the vulnerability only affects workloads that use Field Level Encryption (NVD).

Mitigation and workarounds

The vulnerability was addressed with the release of version 1.2.1 of the mongodb-client-encryption module. Users of version 1.2.0 should upgrade to the fixed version. It's worth noting that this issue does not impact driver workloads that don't use Field Level Encryption (MongoDB JIRA).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-59160HIGH8.8
  • JavaScript logoJavaScript
  • @yeger/turbo-graph
NoYesSep 09, 2026
CVE-2026-59179HIGH8.3
  • JavaScript logoJavaScript
  • @openhop/server
NoYesSep 09, 2026
GHSA-x7m8-jrm8-hpvxHIGH8.1
  • JavaScript logoJavaScript
  • @eigenpal/docx-editor-core
NoYesSep 10, 2026
CVE-2026-59176HIGH7.8
  • JavaScript logoJavaScript
  • functype-mcp-server
NoYesSep 09, 2026
CVE-2026-59158HIGH7.5
  • JavaScript logoJavaScript
  • nuxt-ollama
NoYesSep 09, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management