Skip to content

Bump MongoDB.Driver from 3.13.0 to 3.14.1 - #81

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/src/CiFail.Providers/MongoDB.Driver-3.14.1
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/src/CiFail.Providers/MongoDB.Driver-3.14.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 23, 2026

Copy link
Copy Markdown
Contributor

Updated MongoDB.Driver from 3.13.0 to 3.14.1.

Release notes

Sourced from MongoDB.Driver's releases.

3.14.1

[!IMPORTANT]
This release addresses several CVEs and contains breaking changes. Please find more details below.

  • CSHARP-6221 / CVE-2026-129937: Authentication identity smuggling via NUL-byte injection in SASL PLAIN payload
    Creating or parsing a PLAIN credential whose username or password contains a NUL (\0) character now throws ArgumentException.

  • CSHARP-6205 / CVE-2026-129936: Credential exposure via sensitive connection string values included in parse-error messages

    • ToString() on MongoUrl, MongoUrlBuilder and ConnectionString now returns a redacted URL. Usernames, passwords and other sensitive values become <redacted>.
    • MongoServerAddress.ToString() and MongoCredential.ToString() now return fixed type names, so they no longer expose host, port or username.
    • MongoClientSettings.ToString() no longer includes server addresses or credential details.
    • Exception messages from connection-string parsing, SRV validation, address parsing and authentication no longer include user-supplied values.

    Action required. Any code that uses these ToString() results as a connection string, key or identifier will break:

    • MongoUrl: replace url.ToString() with url.Url.
    • MongoUrlBuilder: replace builder.ToString() with builder.ToMongoUrl().Url. Passing builder.ToMongoUrl() straight to new MongoClient(...) also works.
    • ConnectionString: there is no public way to get the unredacted string back. Keep the original string you passed in.
    • MongoServerAddress: use $"{address.Host}:{address.Port}" instead of ToString().
    • MongoCredential: read credential.Username and credential.Source instead of ToString().
  • CSHARP-6283 / CVE-2026-129938: SRV host normalization logic should be explicit
    Hostnames used with mongodb+srv:// are now validated after normalization. This covers the seed host and the hosts returned by SRV lookups, including periodic re-resolution. This is normally a non-issue, since valid DNS names are unaffected.

  • CSHARP-6216: Wrong regex produced for String.IndexOfAny with an empty or null char array

The full list of issues resolved in this release is available at CSHARP JIRA project.

Documentation on the .NET driver can be found here.

3.14.0

[!IMPORTANT]
This release addresses two CVEs in how the driver decides which types may be created from type discriminators in the database. The driver is now stricter in two ways: it detects compiler-generated anonymous types more precisely, and when allowed types are defined by assembly it also checks generic arguments and array element types. Both changes can cause deserialization that previously succeeded to throw until the types involved are explicitly allowed, so review the notes below before upgrading.
This release also removes the prefixPreview, suffixPreview and substringPreview APIs, which is an unrelated breaking change.

This is the general availability release for the 3.14.0 version of the driver.

Security fixes:

  • CSHARP-6160 / CVE-2026-126982: Types specified by a type discriminator are now checked recursively when the allowed types are defined by assembly
    • Behavior change: When deserializing a type specified by a type discriminator using ObjectSerializerAllowedTypesConvention(params Assembly[]), generic type arguments and array element types are now checked as well as the generic definition. Types that were previously allowed only because their generic definition was in an allowed assembly might now throw until their type arguments are also allowed.
  • CSHARP-6169 / CVE-2026-126839: Anonymous type detection is now more rigorous
    • Behavior change: When deserializing types, a type is now treated as a compiler-generated anonymous type only if it matches the compiler's naming pattern, is compiler-generated, and has only fields and properties typed by its generic parameters. Types that are not anonymous types but resemble them might now throw on deserialization until they are explicitly allowed.

Breaking changes:

  • CSHARP-6137: Drop prefixPreview, suffixPreview, and substringPreview APIs

Fixes:

  • CSHARP-6181: Reject @<current> and @<elem> filter field names that collide with path markers

Maintenance:

The full list of issues resolved in this release is available at CSHARP JIRA project.

Documentation on the .NET driver can be found here.

Commits viewable in compare view.

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

---
updated-dependencies:
- dependency-name: MongoDB.Driver
  dependency-version: 3.14.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels Nov 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants