CVE-2021-20329: MongoDB Go Driver

Medium severity, CVSS 6.5. EPSS: 0.9% chance of exploitation in the next 30 days.

Specific cstrings input may not be properly validated in the MongoDB Go Driver when marshalling Go objects into BSON. A malicious user could use a Go object with specific string to potentially inject additional fields into marshalled documents. This issue affects all MongoDB GO Drivers prior to and including 1.5.0.

Affected products

  • MongoDB Go Driver: up to and including 1.5.0

Published 2021-06-10. Last modified 2026-06-17.