Description
A MongoDB C# driver document-replacement code path omits the element-name/shape validation that the equivalent write paths apply, so a value supplied as a replacement is forwarded to the server without neutralization of query-language special elements. An application that passes untrusted, loosely-typed input as a replacement value therefore allows that input to be interpreted by the database as update logic rather than as data, executing under the application's own database credentials. Applications using strongly-typed document mappings are not affected.
Published: 2026-08-27
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The MongoDB C# driver contains a flaw in its document‑replacement write path that skips the element‑name/shape validation normally applied to update operations. As a result, a user who supplies loosely‑typed or untrusted data as the replacement value can embed MongoDB query operators, which are forwarded to the server and interpreted as update logic, not data. This grants the application the ability to execute arbitrary update commands under its own credentials.

Affected Systems

This vulnerability affects the MongoDB C# Driver, including versions released prior to the fix. The reference package version 3.11.1 is known to contain the impacted code path. All installations of the driver that allow replacement of document data without strong typing are potentially exposed. Applications that map documents using strongly typed classes are not affected.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate impact, and no EPSS data is available. The vulnerability is not listed in the CISA KEV catalog, and no public exploits are documented. The likely attack vector is through an application’s own logic where it accepts untrusted input and passes it as a replacement value; an attacker who can influence that input can inject update logic and modify or delete data. The exploitation requires only application‑level access and does not rely on network weaknesses, making the risk dependent on how the driver is used.

Generated by OpenCVE AI on August 28, 2026 at 08:33 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to the latest MongoDB C# Driver version that contains the fixing change
  • For applications that cannot immediately upgrade, enforce strong typing or validation when providing replacement values so that any embedded query operators are rejected or sanitized
  • Avoid using loosely typed replacement values; prefer strongly typed document mappings or use the driver’s safe update APIs that perform shape validation

Generated by OpenCVE AI on August 28, 2026 at 08:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 28 Aug 2026 07:45:00 +0000

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

Thu, 27 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Description A MongoDB C# driver document-replacement code path omits the element-name/shape validation that the equivalent write paths apply, so a value supplied as a replacement is forwarded to the server without neutralization of query-language special elements. An application that passes untrusted, loosely-typed input as a replacement value therefore allows that input to be interpreted by the database as update logic rather than as data, executing under the application's own database credentials. Applications using strongly-typed document mappings are not affected.
Title NoSQL injection via array replacement bypassing update shape validation in driver write path
Weaknesses CWE-943
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Mongodb C# Driver
cve-icon MITRE

Status: PUBLISHED

Assigner: mongodb

Published:

Updated: 2026-08-27T22:34:51.114Z

Reserved: 2026-08-26T22:14:24.585Z

Link: CVE-2026-81528

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-27T20:18:51.340

Modified: 2026-08-28T00:18:21.277

Link: CVE-2026-81528

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T07:30:07Z

Weaknesses
  • CWE-943

    Improper Neutralization of Special Elements in Data Query Logic