The MongoDB Go Driver Team is pleased to release version 1.17.10 of the official MongoDB Go Driver.
Release Highlights
Warning
Go Driver versions v1.0.0 through v1.17.9 and v2.0.0 through v2.9.0 are affected by a security issue CVE-2026-88031 in the GridFS delete methods. This release resolves that security issue in Go Driver v1. Users are encouraged to upgrade to Go Driver v1.17.10 as soon as possible. For the fix in Go Driver v2, see the v2.9.1 release.
This release addresses CVE-2026-88031, a security issue in GridFS delete methods where the file ID lookup could match more loosely than intended, potentially causing unintended file (and chunk) deletions instead of an exact match on the given file ID.
Users can manually restrict the file ID with a $eq operator before passing it to GridFSBucket methods using code like the following.
func exactMatch(id any) bson.D {
return bson.D{{"$eq", id}}
}
// e.g., for v1, (*Bucket).DeleteContext() with an exact match on the file ID.
bucket.DeleteContext(context.TODO(), exactMatch(id))What's Changed
🐛 Fixed
- GODRIVER-4081: Use exact match for file ID in GridFS delete methods. by @qingyang-hu
Full Changelog: v1.17.9...v1.17.10
For a full list of tickets included in this release, please see the list of fixed issues.
Documentation for the Go Driver can be found on pkg.go.dev and the MongoDB documentation site. BSON library documentation is also available on pkg.go.dev. For issues with, questions about, or feedback for the Go Driver, please look into our support channels, including StackOverflow. Bugs can be reported in the Go Driver project in the MongoDB JIRA where a list of current issues can be found. Your feedback on the Go Driver is greatly appreciated!