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

High 7.1 Published Updated

An attacker can redirect bulk write operations to unintended databases by supplying unvalidated dotted names, potentially modifying unauthorized data.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-81521?

CVE-2026-81521 is a high-severity vulnerability in MongoDB GO Driver, published on 27 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-99

Which versions are affected by CVE-2026-81521?

It affects 1 product.

Products include Mongodb Go Driver.

How do I fix CVE-2026-81521?

Upgrade to a fixed version.

Is CVE-2026-81521 being exploited?

There is no known exploitation of CVE-2026-81521 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-81521, UBUNTU-CVE-2026-81521.

Is CVE-2026-81521 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free