Public vulnerability disclosure

CVE-2026-114647

NoSQL operator injection via unvalidated replacement document in findOneAndReplace

publishedCWE-943

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.

Technical severity5.3 mediumCVSS 4.0 · CNA: mongodb
Published2026-10-22Source updated 2026-11-02
Collected2026-11-022 attributed sources

Fixes and workarounds

No remediation reported in collected sources.

Missing remediation information is not evidence that no patch exists.

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
C# Driver
MongoDB
≥ 2.13.0; < 3.13.0 (affected, semver)
Other versions: unaffected
CNA: mongodb

Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.

CVSS assessments

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
4.0 / 5.3
medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NCNA: mongodb
3.1 / 4.3
medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:NCNA: mongodb

Exploit evidence

References