CVE-2026-81528: NoSQL Injection in MongoDB C# Driver Document Replacement
- Vendor
- Mongodb
CVE-2026-81528 is a NoSQL injection vulnerability in the MongoDB C# Driver document-replacement path. This path omits the element-name and document-shape validation applied by equivalent write operations. Consequently, an untrusted, loosely typed value supplied as a replacement document can retain MongoDB query-language special elements and be interpreted by the server as update logic rather than inert document data. MongoDB C# Driver versions 2.10.0 through 3.11.0 are affected. Applications using strongly typed document mappings are not affected.
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 a replacement value can inject MongoDB update semantics that execute using the application's database credentials. This can permit unauthorized modification of database documents within the privileges available to the application.
Mitigation
If you can’t patch tonight, do this now.
Do not pass untrusted, loosely typed input directly to document-replacement operations. Use strongly typed document mappings and validate or constrain replacement-document structure and element names before performing database writes.
Remediation
Patch, then assume compromise.
Update the affected MongoDB C# Driver to a vendor-patched release. Ensure replacement-write code uses a version in which replacement-document element-name and shape validation is enforced.
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-81528 exploited in the wild?
- As of Sep 29, 2026, Mallory has no reports of CVE-2026-81528 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-81528?
- As of Sep 29, 2026, Mallory has found no public exploit for CVE-2026-81528.
- Is there a patch for CVE-2026-81528?
- Update the affected MongoDB C# Driver to a vendor-patched release. Ensure replacement-write code uses a version in which replacement-document element-name and shape validation is enforced.
- What products are affected by CVE-2026-81528?
- Mongodb C# Driver.
- How severe is CVE-2026-81528?
- CVE-2026-81528 has a CVSS v4 score of 5.3 (Medium) and an EPSS score of 0.28% (13th percentile) as of Sep 29, 2026.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.