Description
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.
Published: 2026-08-27
Score: 7.1 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability in the MongoDB Go Driver allows a caller to provide a database name that includes a reserved separator character (a dot) without proper escaping. The driver then uses that string to build the target namespace for a bulk write operation. The result is that writes intended for one database/collection may be directed elsewhere, potentially causing data corruption, accidental data loss, or unintended data exposure. The weakness is a form of improper input validation (CWE‑99).

Affected Systems

MongoDB Go Driver (referred to as the MongoDB Go Driver) is the only affected vendor/product. The issue is limited to the client-level BulkWrite API. No specific driver versions are listed, so any deployment using the driver that performs bulk writes is potentially exposed.

Risk and Exploitability

The CVSS score of 7.1 classifies this as a high‑severity vulnerability. The EPSS score is not provided, so the current exploitation probability is unknown; the vulnerability is not listed in the CISA KEV catalog. The likely attack vector involves an application that accepts untrusted input as a database name, such as a multi‑tenant API endpoint or a user‑configurable database parameter. An attacker who can supply a crafted database name can cause the driver to write data to a different database/collection, thereby compromising data integrity and confidentiality without requiring any privileged access or additional components.

Generated by OpenCVE AI on August 28, 2026 at 08:37 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the MongoDB Go Driver to the latest available version to incorporate the vendor’s fix.
  • Implement validation in the application layer to reject or properly escape database names containing reserved separator characters (such as dots).
  • Add unit tests that verify database names cannot contain separator characters before they are passed to the BulkWrite API.

Generated by OpenCVE AI on August 28, 2026 at 08:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 28 Aug 2026 07:45:00 +0000

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb go Driver
Vendors & Products Mongodb
Mongodb go Driver

Thu, 27 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Cross-database write retargeting via unvalidated dotted database name in Client.BulkWrite in the MongoDB Go Driver
Weaknesses CWE-99
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N'}

cvssV4_0

{'score': 7.1, 'vector': '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'}


Subscriptions

Mongodb Go Driver
cve-icon MITRE

Status: PUBLISHED

Assigner: mongodb

Published:

Updated: 2026-08-27T20:41:59.025Z

Reserved: 2026-08-26T22:13:12.343Z

Link: CVE-2026-81521

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-27T20:18:50.350

Modified: 2026-08-28T00:18:20.520

Link: CVE-2026-81521

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T07:30:07Z

Weaknesses
  • CWE-99

    Improper Control of Resource Identifiers ('Resource Injection')