Quick answers
- Is CVE-2026-81521 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-81521 being exploited in the wild.
- How severe is CVE-2026-81521?
- Medium severity, with a CVSS score of 6.5, published 27 August 2026.
- Which products and versions are affected?
- MongoDB Go Driver before 2.8.2.
- Is there a fix for CVE-2026-81521?
- A patch was published on 2026-08-27: Fix released in v2.8.2 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-81521 attacked?
- It is attacked with local access, in a software library.
- Am I affected by CVE-2026-81521?
- Check whether you run MongoDB Go Driver at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
The vulnerability is a namespace injection issue in the Client.BulkWrite API. When a caller supplies a database name containing reserved separator characters ("." or NUL bytes), the driver does not validate or escape these characters before constructing the target namespace. This allows an attacker-controlled database name to be reinterpreted, potentially directing writes to a different database and collection than intended. The attack vector is local/application-level—an attacker must control the database name parameter passed to the BulkWrite call. The fix (released in v2.8.2) validates database and collection names, rejecting any that contain "." or NUL bytes and returning an error to the caller, preventing silent misdirection of writes.
Affected products
- MongoDB Go Driver before 2.8.2
Timeline
- 2026-08-27: disclosed
- 2026-08-27: patched: Fix released in v2.8.2