CVE-2026-81521

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

State
Published
Severity
7.1 High
Published
Aug 27, 2026
Updated
Oct 6, 2026
Reserved
Aug 26, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.07.1 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:Nmongodb
3.16.5 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:Nmongodb

Weaknesses

  • CWE-99 Improper Control of Resource Identifiers ('Resource Injection')

Affected Products

ProductVersions
GO DriverMongoDB
  • 2.1.0 to before 2.8.2Affected
  • 2.9.0 to before 2.9.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.