Skip to main content

MongoDB Go Driver CVE-2026-81521

| EUVDEUVD-2026-67205 HIGH
Improper Control of Resource Identifiers ('Resource Injection') (CWE-99)
2026-08-27 mongodb
7.1
CVSS 4.0 · Vendor: mongodb
Share

Severity by source

Vendor (mongodb) PRIMARY
7.1 HIGH
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
vuln.today AI
6.5 MEDIUM

Network-reachable via app layer (AV:N), low complexity; PR:L because attacker must control app input; integrity-only impact with no confidentiality or availability effect.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

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
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
X

Lifecycle Timeline

3
Patch available
Aug 27, 2026 - 22:03 EUVD
Analysis Generated
Aug 27, 2026 - 20:43 vuln.today
CVE Published
Aug 27, 2026 - 18:31 cve.org
HIGH 7.1

DescriptionCVE.org

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.

AnalysisAI

Namespace injection in MongoDB Go Driver's Client.BulkWrite API allows an attacker who controls the database name argument to redirect bulk write operations to an unintended database and collection. When an application passes untrusted, user-supplied input directly as a database name, the driver fails to escape reserved MongoDB namespace separator characters before constructing the target namespace string. …

Unlock full vulnerability intelligence

  • Risk assessment & exploitation conditions
  • Attack chain visualization
  • Remediation with exact patch versions
  • Threat intelligence from 22 sources
  • Personal watchlist & email alerts

Free forever · No credit card required

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata

Access
Attacker supplies crafted database name via app input
Delivery
App calls Client.BulkWrite with unsanitized name
Exploit
Driver builds malformed namespace string
Execution
Write operation targets unintended database/collection
Impact
Data integrity violated in attacker-chosen namespace

Vulnerability AssessmentAI

Exploitation Exploitation requires three concurrent conditions: (1) the application uses the Client.BulkWrite API from go.mongodb.org/mongo-driver/v2 specifically - single-collection write APIs are not affected; (2) the application passes a caller-supplied or otherwise untrusted string as the database name argument without prior sanitization; and (3) the attacker has the ability to influence that database name input, typically through an API parameter, configuration endpoint, or multi-tenant identifier field. … Additional conditions and limiting factors are described in the full assessment.
Risk Assessment The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N) scores 7.1, reflecting high integrity impact reachable over the network with low privilege. … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in.
Exploit Scenario An attacker interacts with a Go web service that exposes a multi-tenant API where the database name is derived from a user-supplied tenant identifier. By supplying a tenant name such as 'legit.admin', the attacker causes the MongoDB Go Driver's Client.BulkWrite to construct the namespace 'legit.admin.orders' instead of 'legit.orders', silently redirecting bulk writes into the 'admin' collection of the 'legit' database - or into an entirely different database depending on separator placement. …
Remediation The primary fix is to upgrade go.mongodb.org/mongo-driver/v2 to v2.8.2 or later, which introduces proper escaping of reserved separator characters in the Client.BulkWrite namespace construction path. … Detailed patch versions, workarounds, and compensating controls in full report.

Recommended ActionAI

Within 24 hours, conduct a code audit of all applications using the MongoDB Go Driver to identify where Client.BulkWrite receives user-supplied or untrusted input for database name parameters. …

Sign in for detailed remediation steps and compensating controls.

Threat intelligence, references, and detailed analysis are available after sign-in.

Share

CVE-2026-81521 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy