Skip to main content
← All vulnerabilities
CVE-2026-114647EUVD-2026-108312GHSA-68CJ-624M-MXJ3

NoSQL operator injection via unvalidated replacement document in findOneAndReplace

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.13.0
None on Exploit-DB, Metasploit or GitHub

Summary

The MongoDB C# Driver's FindOneAndReplace method is affected, which can impact applications that build replacement documents from user-supplied field names. An attacker could cause unintended update operators to be applied, modifying the contents of the matched document in ways the application did not intend.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original description

The MongoDB C# Driver does not reject replacement documents whose top-level field names begin with a dollar sign in FindOneAndReplace, unlike other replace operations. An application that builds such a document from user-supplied field names can have the server apply update operators instead of a full replacement. The effect is limited to the document matched by the application's own filter, whose contents can be modified in ways the application did not intend.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. Record last updated

Affected versions

  • MongoDB C# Driver

    From 2.13.0 · fixed in 3.13.0

References 3

jira.mongodb.org

GitHub · mongodb/mongo-csharp-driver