MongoDB C# Driver unintended updates in FindOneAndReplace
MongoDB C# Driver
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| MongoDB C# Driver |
| No fix yet |
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.
From the CVE record · mongodb