golang-mongodb-mongo-driver — security advisory
The 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.
- Products
- golang-mongodb-mongo-driver
- Affected versions
- 1.12.1+ds1-1, 1.12.1+ds1-2, 1.16.1+ds1-1, 1.17.0+ds1-1, 1.17.1+ds1-1, 1.17.1+ds1-2, 1.17.1+ds1-3, 1.17.9+ds1-1, 1.8.4+ds1-3
- Fixed versions
- Not specified
- CVEs
- CVE-2026-81521
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 28 Oct 2026, 03:40 UTC · Revision 1
Source evidence
The 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.
osv:DEBIAN-CVE-2026-81521
golang-mongodb-mongo-driver
Fixed versions: Not specified
golang-mongodb-mongo-driver
Fixed versions: Not specified
golang-mongodb-mongo-driver
Fixed versions: Not specified
Complete source record
{
"id": "1dafb76df4dff5d551beb2d41d6d416c7f3d2c71998ec9ceb8148eef63115541",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-81521",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2026-81521",
"summary": "The 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.",
"evidence": "osv:DEBIAN-CVE-2026-81521",
"products": [
{
"name": {
"value": "golang-mongodb-mongo-driver",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.12.1+ds1-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.12.1+ds1-2",
"evidence": "/affected/0/versions"
},
{
"value": "1.16.1+ds1-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.17.0+ds1-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.17.1+ds1-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.17.1+ds1-2",
"evidence": "/affected/0/versions"
},
{
"value": "1.17.1+ds1-3",
"evidence": "/affected/0/versions"
},
{
"value": "1.17.9+ds1-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.8.4+ds1-3",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "golang-mongodb-mongo-driver",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.17.1+ds1-2",
"evidence": "/affected/1/versions"
},
{
"value": "1.17.1+ds1-3",
"evidence": "/affected/1/versions"
},
{
"value": "1.17.9+ds1-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "golang-mongodb-mongo-driver",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.17.1+ds1-2",
"evidence": "/affected/2/versions"
},
{
"value": "1.17.1+ds1-3",
"evidence": "/affected/2/versions"
},
{
"value": "1.17.9+ds1-1",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2026-81521",
"aliases": [
"DEBIAN-CVE-2026-81521"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-mongodb-mongo-driver",
"purl": "pkg:deb/debian/golang-mongodb-mongo-driver?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"1.12.1+ds1-1",
"1.12.1+ds1-2",
"1.16.1+ds1-1",
"1.17.0+ds1-1",
"1.17.1+ds1-1",
"1.17.1+ds1-2",
"1.17.1+ds1-3",
"1.17.9+ds1-1",
"1.8.4+ds1-3"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-81521.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-mongodb-mongo-driver",
"purl": "pkg:deb/debian/golang-mongodb-mongo-driver?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"1.17.1+ds1-2",
"1.17.1+ds1-3",
"1.17.9+ds1-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-81521.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-mongodb-mongo-driver",
"purl": "pkg:deb/debian/golang-mongodb-mongo-driver?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"1.17.1+ds1-2",
"1.17.1+ds1-3",
"1.17.9+ds1-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-81521.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-07T09:47:33.287284867Z",
"provider": "osv",
"upstream": [
"CVE-2026-81521"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-81521"
]
},
"related_cves": [
{
"value": "CVE-2026-81521",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 94658,
"published_at": "2026-08-27T20:18:50.35+00:00"
}