GO-2021-0111
not scored yetwithdrawn / rejectedDue 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
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | go.mongodb.org/mongo-driver | < 1.5.1 | 1.5.1 |
References
- https://github.com/mongodb/mongo-go-driver/pull/622 · FIX
- https://github.com/mongodb/mongo-go-driver/commit/2aca31d5986a9e1c65a92264736de9fdc3b9b4ca · FIX
- https://jira.mongodb.org/browse/GODRIVER-1923 · WEB
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Jul 2021)