CVE-2026-81521: MongoDB Go Driver Client.BulkWrite Database Name Write Redirection
- Vendor
- Mongodb
CVE-2026-81521 is an improper input-validation vulnerability in the MongoDB Go Driver client-level bulk write API. Client.BulkWrite accepts a caller-supplied database name and uses it to construct the target namespace without escaping a reserved namespace-separator character. A database name containing that character can alter namespace parsing, causing bulk write operations to be directed to a database and collection other than the application intended. The issue is limited to the Client.BulkWrite API.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An attacker able to control the database-name value supplied to Client.BulkWrite can redirect write operations to an unintended database and collection. This has high integrity impact, including unauthorized creation, modification, or corruption of records in targets accessible through the application's MongoDB credentials. No confidentiality or availability impact is identified.
Mitigation
If you can’t patch tonight, do this now.
Do not pass untrusted input directly as the database-name argument to Client.BulkWrite. Enforce a strict allowlist of expected database names and reject names containing the reserved namespace-separator character. Where possible, use application-controlled static database names and least-privilege MongoDB credentials scoped only to required databases and collections.
Remediation
Patch, then assume compromise.
Update the MongoDB Go Driver, or distribution-provided golang-mongodb-mongo-driver package, to a vendor-fixed release when available. Red Hat Edge Manager deployments should apply the updated flightctl component packages provided in RHSA-2026:68334, including version 1.1.4-1 packages for supported RHEL 9 and RHEL 10 systems. Debian package status was reported as unpatched; a specific fixed Debian package version is not available.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-81521 exploited in the wild?
- As of Sep 29, 2026, Mallory has no reports of CVE-2026-81521 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-81521?
- As of Sep 29, 2026, Mallory has found no public exploit for CVE-2026-81521.
- Is there a patch for CVE-2026-81521?
- Update the MongoDB Go Driver, or distribution-provided golang-mongodb-mongo-driver package, to a vendor-fixed release when available. Red Hat Edge Manager deployments should apply the updated flightctl component packages provided in RHSA-2026:68334, including version 1.1.4-1 packages for supported RHEL 9 and RHEL 10 systems.
- What products are affected by CVE-2026-81521?
- Mongodb Go Driver.
- How severe is CVE-2026-81521?
- CVE-2026-81521 has a CVSS v4 score of 7.1 (High) and an EPSS score of 0.40% (26th percentile) as of Sep 29, 2026.
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.