CVE-2026-81529

Connection-option injection via unescaped settings in the canonical MongoDB URL builder

Published Aug 27, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
Improper neutralization of delimiters in connection-URL construction allows connection-option injection in the MongoDB C# Driver. When an application passes untrusted text into the driver's connection-URL builder and round-trips the builder back into a client configuration, the untrusted text is serialized without neutralizing the URL/option delimiters and is then re-parsed as authoritative connection options. A low-privileged user of such an application can thereby introduce or suppress security-relevant connection settings.

Analysis

AI-generated

Technical impact

The flaw lies in improper neutralization of delimiters when the MongoDB C# Driver constructs a connection URL, allowing untrusted text to be serialized without escaping URL or option delimiters. When the URL builder round‑trips back into a client configuration, the inserted characters are parsed as legitimate options, giving an attacker the ability to inject or suppress security‑relevant settings such as disabling TLS, altering authentication, or enabling additional drivers. This could enable a low‑privileged user to bypass authentication, downgrade encryption, or otherwise compromise the integrity of database connections. The vulnerability directly leads to unauthorized configuration changes that can undermine the security controls enforced by the database client.

Affected Systems

All installations of the MongoDB C# Driver that use the canonical URL builder are impacted, including the version referenced in the advisory, 3.11.1, and any subsequent releases until the fix is applied. The issue is not limited to a single patch version, so any application that directly passes untrusted strings to the driver’s URL builder is potentially vulnerable.

Risk and Exploitability

The CVSS score of 7.1 classifies the issue as medium severity. EPSS data is not available, so the probability of exploitation cannot be quantified, but the flaw is not listed in the CISA KEV catalog. The likely attack vector is local or remote depending on how the application accepts input that is forwarded to the driver. Once the attacker controls the string passed to the URL builder, the attack can be executed immediately and does not require complex conditions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the MongoDB C# Driver to a release that includes the URL builder fix.
  • Validate or sanitize all external input before it is passed to the driver’s connection‑URL builder, ensuring that only trusted data is used for configuration.
  • Restrict the use of the URL builder to internal or controlled contexts and consider constructing client options via dedicated configuration objects rather than passing raw URLs.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb c# Driver
Vendors & Products Mongodb
Mongodb c# Driver
Type Values Removed Values Added
Description Improper neutralization of delimiters in connection-URL construction allows connection-option injection in the MongoDB C# Driver. When an application passes untrusted text into the driver's connection-URL builder and round-trips the builder back into a client configuration, the untrusted text is serialized without neutralizing the URL/option delimiters and is then re-parsed as authoritative connection options. A low-privileged user of such an application can thereby introduce or suppress security-relevant connection settings.
Title Connection-option injection via unescaped settings in the canonical MongoDB URL builder
Weaknesses CWE-88
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-88

    Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Sources

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