CVE-2026-81521

NameCVE-2026-81521
DescriptionThe MongoDB Go Driver's client-level bulk write operation may accept a caller-supplied database name containing a reserved separator character without escaping it before the name is used to build the target namespace for the operation. An application that passes untrusted input as a database name could therefore have the write directed at a database and collection other than the ones it intended. Only the Client.BulkWrite API is affected.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1146711

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
golang-mongodb-mongo-driver (PTS)bookworm1.8.4+ds1-3vulnerable
trixie1.17.1+ds1-2vulnerable
forky, sid1.17.9+ds1-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
golang-mongodb-mongo-driversource(unstable)(unfixed)1146711

Notes

[trixie] - golang-mongodb-mongo-driver <no-dsa> (Minor issue)
[bookworm] - golang-mongodb-mongo-driver <postponed> (Limited support)
https://jira.mongodb.org/browse/GODRIVER-4075
Bulk Write API improved in: https://github.com/mongodb/mongo-go-driver/commit/50cf0c20d228975074c0010bfb688917e25934a4 (v2.1.0)
Fixed by: https://github.com/mongodb/mongo-go-driver/commit/2ccb9c0ebe924b8445bdbbc6914f07e9072d1e4a (v2.8.2)

Search for package or bug name: Reporting problems