ADVISORIES

Go Vulnerability Database

GO-2021-0112

Improper input validation in go.mongodb.org/mongo-driver

Details

Due to improper input sanitization when marshalling Go objects into BSON, a maliciously constructed Go structure could allow an attacker to inject additional fields into a MongoDB document. Users are affected if they use this package to handle untrusted user input.

Affected packages

EcosystemPackageAffected versions
Gogo.mongodb.org/mongo-driver
All versions before 1.5.1 (fixed in 1.5.1)

References