Description
A NoSQL/expression injection weakness exists in the LINQ-to-aggregation query translation layer of the MongoDB C# Driver, in both aggregation expression and query filter translation. When application-supplied values are embedded in certain query constructs, special elements contained within those values are not properly escaped before the resulting query is transmitted to the database, so portions of the value may be interpreted by the database as query logic rather than as data. A user able to supply values that an application incorporates into an affected query may thereby cause unintended data to be returned or query results to be altered.
Published: 2026-08-27
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A NoSQL injection weakness exists in the LINQ-to-aggregation translation layer of the MongoDB C# Driver. The vulnerability arises because unquoted constant GroupBy keys are not properly escaped, allowing special elements in application‑supplied values to be interpreted by the database as query logic rather than data. This can lead to unintended data being returned or query results being altered, representing a data exposure and manipulation risk (CWE-943).

Affected Systems

Affected systems include the MongoDB C# Driver. No specific version range is provided in the data, but the issue is known to impact at least the version referenced by nuget.org/packages/MongoDB.Driver/3.11.1.

Risk and Exploitability

The CVSS score of 6.9 classifies this as a moderate severity vulnerability with unknown exploit probability (EPSS not available) and no listing in the CISA KEV catalog. The likely attack vector is through application‑supplied input that is incorporated into LINQ queries; a user who can control such input can exploit the injection flaw, potentially requiring authenticated access to the application. Because the injection occurs within the driver’s query translation, exploitation does not depend on database configuration but on the application's use of the driver.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the MongoDB C# Driver to a version that includes the fix (e.g., upgrade to 3.11.2 or later).
  • Audit LINQ query constructions to ensure that all constant keys and values are properly escaped or parameterized before being passed to the driver.
  • Perform penetration testing or static analysis focused on NoSQL injection patterns within LINQ-to-aggregation translations to confirm that the vulnerability has been mitigated.

Generated by OpenCVE AI on August 28, 2026 at 08:34 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 NoSQL/expression injection weakness exists in the LINQ-to-aggregation query translation layer of the MongoDB C# Driver, in both aggregation expression and query filter translation. When application-supplied values are embedded in certain query constructs, special elements contained within those values are not properly escaped before the resulting query is transmitted to the database, so portions of the value may be interpreted by the database as query logic rather than as data. A user able to supply values that an application incorporates into an affected query may thereby cause unintended data to be returned or query results to be altered.
Title NoSQL injection via unquoted constant GroupBy keys in LINQ pipeline translation
Weaknesses CWE-943
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/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:50.443Z

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

Link: CVE-2026-81527

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-81527

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