GO-2021-0111 - Due to improper input sanitization when marshalling Go objects into BSON, a maliciously constructed Go…
Severity: info · Published 2021-07-28
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.
Yes. go.mongodb.org/mongo-driver (Go): upgrade to 1.5.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected?
Check whether you run go.mongodb.org/mongo-driver (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
go.mongodb.org/mongo-driver (Go): upgrade to 1.5.1 or later