#4141st of 354 in Backends, databases and hosting
mongo-go-driver
Official MongoDB driver for Go, with a BSON package
Run it:RackNerd ↗ (opens in a new tab)RepoCloud ↗ (opens in a new tab)Affiliate links, no effect on a rank.
- Stars
- 8.5k
- License
- Apache-2.0
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- Go
8,475 on 2 May 20268,549 on 21 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
MongoDB is hiring: 422 open roles
Overview
Go client library for MongoDB, installed as a Go module (go.mongodb.org/mongo-driver/v2). It provides a mongo.Client with Database and Collection handles, cursors, a bson package, and network compression via snappy, zlib or zstd. Version 2.0 is current, and a migration guide covers upgrading from 1.x.
Who it is for: Go developers building services on MongoDB
Strengths
- Maintained by MongoDB; follows semantic versioning with a v2.0 migration guide
- Supports snappy, zlib and zstd network compression, negotiated with the server
- Connect does not block on server discovery; Ping checks reachability explicitly
- Includes its own bson package, so no extra serialization dependency
Weaknesses
- Requires Go 1.25 or higher; only the last two Go minor versions are supported
- Needs MongoDB 4.4 or newer; older servers are unsupported
- Running the driver test suite requires Go 1.26 or higher
- Upgrading from 1.x to 2.0 involves breaking changes and a migration step
What it needs
- no GPU
- Docker
- Needs MongoDB 4.4+
What changed
- v2.10.1 ↗ (opens in a new tab)Security fix
CVE-2026-129934, CVE-2026-129935, GHSA-3C2M-3GH6-65RX, GHSA-29QR-P9GM-XFVF. “Go Driver versions before 2.10.1 (this release) are affected by a security issue related to credential exposure in connection string parse errors (CVE-2026-129934). Users are encouraged to upgrade to…”
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in Backends, databases and hosting
See all 354| Rank | Project | Score |
|---|---|---|
| #39 | casdoorSelf-hosted SSO and identity provider with web console | 87 out of 100 |
| #40 | node-mongodb-nativeOfficial MongoDB driver for Node.js with TypeScript types | 87 out of 100 |
| #42 | nocodbSpreadsheet-style web UI and REST API on top of SQL databases | 86 out of 100 |
| #43 | payloadNext.js-native headless CMS and app framework with a React admin panel | 86 out of 100 |
| #44 | symfonyPHP web and console framework with a set of reusable components | 86 out of 100 |