{"id":"CVE-2026-114647","state":"PUBLISHED","title":"NoSQL operator injection via unvalidated replacement document in findOneAndReplace","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.","publishedAt":"2026-10-22T19:13:51.972Z","updatedAt":"2026-10-22T21:25:33.454Z","severity":{"score":5.3,"label":"Medium","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","source":"mongodb"},"assigner":"mongodb","products":["MongoDB C# Driver"],"affected":[{"vendor":"MongoDB","product":"C# Driver","defaultStatus":"unaffected","versions":[{"version":"2.13.0","status":"affected","lessThan":"3.13.0","versionType":"semver"}]}],"references":["https://jira.mongodb.org/browse/CSHARP-6186","https://github.com/mongodb/mongo-csharp-driver/releases/tag/v3.13.0","https://github.com/mongodb/mongo-csharp-driver/security/advisories/GHSA-68cj-624m-mxj3"],"weaknesses":["CWE-943"],"ingestedAt":"2026-10-29T20:10:43.281Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/114xxx/CVE-2026-114647.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-114647","state":"PUBLISHED","datePublished":"2026-10-22T19:13:51.972Z","dateUpdated":"2026-10-22T21:25:33.454Z","assignerShortName":"mongodb","assignerOrgId":"a39b4221-9bd0-4244-95fc-f3e2e07f1deb","dateReserved":"2026-10-21T21:57:44.493Z"},"containers":{"cna":{"title":"NoSQL operator injection via unvalidated replacement document in findOneAndReplace","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"MongoDB","product":"C# Driver","defaultStatus":"unaffected","versions":[{"version":"2.13.0","status":"affected","lessThan":"3.13.0","versionType":"semver"}]}],"references":[{"url":"https://jira.mongodb.org/browse/CSHARP-6186"},{"url":"https://github.com/mongodb/mongo-csharp-driver/releases/tag/v3.13.0"},{"url":"https://github.com/mongodb/mongo-csharp-driver/security/advisories/GHSA-68cj-624m-mxj3"}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"MEDIUM","baseScore":5.3,"vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE","baseSeverity":"MEDIUM","baseScore":4.3,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-943","lang":"en","description":"CWE-943: Improper Neutralization of Special Elements in Data Query Logic","type":"CWE"}]}],"providerMetadata":{"shortName":"mongodb","orgId":"a39b4221-9bd0-4244-95fc-f3e2e07f1deb","dateUpdated":"2026-10-22T21:25:33.454Z"},"source":{"discovery":"INTERNAL"},"x_generator":{"engine":"cve_record_builder.py"}}}}}