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.
Published: 2026-10-22
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized Document Modification
Action: Apply Patch
AI Analysis

Impact

The MongoDB C# Driver permits replacement documents whose top‑level field names begin with a dollar sign during a FindOneAndReplace operation. If an attacker controls those field names, the driver interprets the $‑prefixed names as update operators and applies them to the document that matches the provided filter. This causes the application to unintentionally modify the matched document’s contents, which can lead to data integrity violations. The flaw is a form of NoSQL operator injection (CWE‑943).

Affected Systems

The vulnerability affects the MongoDB C# Driver produced by MongoDB. No specific affected driver versions are listed in the CNA data; however, any release prior to the defensive changes referenced in the official GitHub release for v3.13.0 is potentially vulnerable.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity. EPSS data is not available, but the flaw is not listed in the CISA KEV catalog, suggesting it has not yet been widely exploited. Based on the description, the likely attack vector is an application that accepts user‑provided field names and constructs a replacement document for FindOneAndReplace; an attacker can supply a replacement document that contains $‑operator field names to influence the server’s update behavior.

Generated by OpenCVE AI on October 23, 2026 at 03:13 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the MongoDB C# Driver to v3.13.0 or later to reach a version where the issue is fixed
  • Validate or sanitize all user‑supplied field names prior to constructing a replacement document, rejecting any that begin with a dollar sign
  • If an upgrade is temporarily infeasible, ensure the application logic explicitly verifies that replacement documents contain only acceptable field names and do not include any $‑prefixed keys

Generated by OpenCVE AI on October 23, 2026 at 03:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 02 Nov 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 23 Oct 2026 05:00:00 +0000

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb c# Driver
Vendors & Products Mongodb
Mongodb c# Driver

Fri, 23 Oct 2026 00:45:00 +0000

Type Values Removed Values Added
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.
Title NoSQL operator injection via unvalidated replacement document in findOneAndReplace
Weaknesses CWE-943
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N'}

cvssV4_0

{'score': 5.3, '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'}


Subscriptions

Mongodb C# Driver
cve-icon MITRE

Status: PUBLISHED

Assigner: mongodb

Published:

Updated: 2026-11-02T12:19:43.566Z

Reserved: 2026-10-21T21:57:44.493Z

Link: CVE-2026-114647

cve-icon Vulnrichment

Updated: 2026-11-02T12:19:14.607Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-22T19:17:38.437

Modified: 2026-11-02T13:17:35.803

Link: CVE-2026-114647

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T04:45:13Z

Weaknesses
  • CWE-943

    Improper Neutralization of Special Elements in Data Query Logic