CVE-2026-81521

Cross-database write retargeting via unvalidated dotted database name in Client.BulkWrite in the MongoDB Go Driver

Published Aug 27, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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) and untrusted input misuse (CWE-791).

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 < 1%, indicating a very low but nonzero likelihood of exploitation. 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.

Remediation

No solution or workaround provided in the CVE record.

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 September 4, 2026 at 01:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:mongodb:go_driver:*:*:*:*:*:mongodb:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb go Driver
Vendors & Products Mongodb
Mongodb go Driver
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'}

Weaknesses
  • CWE-791

    Incomplete Filtering of Special Elements

  • CWE-99

    Improper Control of Resource Identifiers ('Resource Injection')

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Oct 6, 2026, 6:17 PM
Reserved
Aug 26, 2026, 10:13 PM
Status
Analyzed
Published
Aug 27, 2026, 8:18 PM
Modified
Oct 6, 2026, 7:18 PM
Severity
Important
Public date
Aug 27, 2026, 6:31 PM