CVE-2026-81527

NoSQL injection via unquoted constant GroupBy keys in LINQ pipeline translation

Published Aug 27, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mongodb c\# Driver
CPEs cpe:2.3:a:mongodb:c\#_driver:*:*:*:*:*:mongodb:*:*
Vendors & Products Mongodb c\# Driver
Type Values Removed Values Added
First Time appeared Mongodb
Mongodb c# Driver
Vendors & Products Mongodb
Mongodb c# Driver
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'}

Weaknesses
  • CWE-943

    Improper Neutralization of Special Elements in Data Query Logic

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Aug 28, 2026, 3:46 PM
Reserved
Aug 26, 2026, 10:14 PM
Status
Analyzed
Published
Aug 27, 2026, 8:18 PM
Modified
Sep 29, 2026, 7:16 PM