Improper Input Validation
go.mongodb.org/mongo-driver/bson/bsonrw is a The MongoDB supported driver for Go.
Affected versions of this package are vulnerable to Improper Input Validation. 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.
go.mongodb.org/mongo-driver/bson/bsonrw to version 1.5.1 or higher.
github.com/masterminds/goutils is a provides users with utility functions to manipulate strings in various ways.
Affected versions of this package are vulnerable to Insecure Randomness via the
CryptoRandomAlphaNumeric(int) functions. Small values of
int in the functions above will return a smaller subset of results than they should. For example,
RandomAlphaNumeric(1) would always return a digit in the 0-9 range, while
RandomAlphaNumeric(4) return around ~7 million of the ~13M possible permutations.
github.com/masterminds/goutils to version 1.1.1 or higher.