CVE-2026-81521

Source
https://cve.org/CVERecord?id=CVE-2026-81521
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-81521.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-81521
Downstream
Related
Published
2026-08-27T18:31:45Z
Modified
2026-10-01T17:41:49Z
Severity
  • 7.1 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Cross-database write retargeting via unvalidated dotted database name in Client.BulkWrite in the MongoDB Go Driver
Details

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.

Database specific
{
    "cna_assigner":  "mongodb",
    "cwe_ids":  [
        "CWE-99"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/81xxx/CVE-2026-81521.json",
    "unresolved_ranges":  [
        {
            "extracted_events":  [
                {
                    "introduced":  "2.1.0"
                },
                {
                    "fixed":  "2.8.2"
                }
            ],
            "source":  "AFFECTED_FIELD"
        }
    ]
}
References

Affected packages

Git / github.com/mongodb/mongo-go-driver

Affected ranges

Type
GIT
Repo
https://github.com/mongodb/mongo-go-driver
Events
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:mongodb:go_driver:*:*:*:*:*:mongodb:*:*",
    "extracted_events":  [
        {
            "introduced":  "2.1.0"
        },
        {
            "fixed":  "2.8.2"
        }
    ],
    "source":  "CPE_RANGE"
}

Affected versions

v2.*
v2.1.0
v2.2.0
v2.3.0
v2.4.0
v2.5.0
v2.6.0
v2.8.0
v2.8.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-81521.json"