MongoDB Node.js client side field level encryption library may not be validating KMS certificate
Key facts
- Attack vector
- Adjacent network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-295.
Summary
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
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MongoDB | MongoDB Node.js Driver mongodb-client-encryption module | 1.2.0 | — | No fix listed | CNA |
| — | mongodb-client-encryption (npm) | 1.2.0 to before 1.2.1 | 1.2.1 | Patch available | GHSA-rjmf-p882-645m |
- MongoDB Node.js Driver mongodb-client-encryption module VendorMongoDB Affected 1.2.0 Fixed in — No fix listed CNA
- mongodb-client-encryption (npm) Vendor— Affected 1.2.0 to before 1.2.1 Fixed in 1.2.1 Patch available GHSA-rjmf-p882-645m
Remediation
- Fix · GHSA-rjmf-p882-645m mongodb-client-encryption (npm) Fixed in 1.2.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-20327
- 2026-10-03 Alias added: GHSA-rjmf-p882-645m
References
Sources
- CVE-2021-20327 · CVE Program
- CVE-2021-20327 · NVD
- FIRST EPSS
- GHSA-rjmf-p882-645m · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences