Improper Input Validation
Detailed paths
Overview
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.
Remediation
Upgrade go.mongodb.org/mongo-driver/bson/bsonrw
to version 1.5.1 or higher.
References
Insecure Randomness
Detailed paths
Overview
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 RandomAlphaNumeric(int)
and 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.
Remediation
Upgrade github.com/masterminds/goutils
to version 1.1.1 or higher.