Skip to content

Deps: Bump the mongodb-driver group with 1 update - #135

Open
dependabot[bot] wants to merge 1 commit into
releasefrom
dependabot/nuget/release/mongodb-driver-f70c1c0315
Open

dependabot[bot] wants to merge 1 commit into
releasefrom
dependabot/nuget/release/mongodb-driver-f70c1c0315

Conversation

@dependabot

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

Copy link
Copy Markdown

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 <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps MongoDB.Driver from 3.13.0 to 3.14.1

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Nov 23, 2026
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants