Skip to content

Update NuGet packages - #580

Merged
linkdotnet merged 1 commit into
masterfrom
renovate/nuget-packages
Nov 14, 2026
Merged

linkdotnet merged 1 commit into
masterfrom
renovate/nuget-packages

Conversation

@linkdotnet

Copy link
Copy Markdown
Owner

This PR contains the following updates:

Package Change Age Confidence
MongoDB.Driver (source) 3.13.0 → 3.14.0 age confidence
SonarAnalyzer.CSharp (source) 10.35.0.4138 → 10.36.0.15337 age confidence
bunit (source) 2.14.0 → 2.15.2 age confidence

Release Notes

mongodb/mongo-csharp-driver (MongoDB.Driver)

v3.14.0: .NET Driver Version 3.14.0 Release Notes

[!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.

SonarSource/sonar-dotnet (SonarAnalyzer.CSharp)

v10.36.0.15337

Compare Source

Release notes - .NET Analyzers - 10.36

Two months since 10.35, and the nets have been busy. We went fishing for false positives and landed over twenty, and we caught a crash and a memory leak along the way. We kept the new rules and stopped throwing back the good code fixes.

What's in the catch:

  • 🔮 .NET 11 / C# 15 readiness: we support the new language features (union types, closed hierarchies, extension indexers, collection expression with(...) arguments, labeled break/continue). We probed the SonarWay rules against them and fixed false positives that turned up.
  • 🆕 Three new rules: S9414, S9415 and S9422.
  • 🛠️ Better code fixes: S2178 and S1110, plus a faster, leak-free S110.
  • 🎯 23 false positives gone, including EF Include rules, async/CancellationToken rules and MAUI/WPF handlers.
Feature

NET-1612 Fix S2178 CodeFix: Using short-circuiting operator does not preserve operator precedence
NET-2154 Use Roslyn location mapping capabilities
NET-4654 Create rule S9414: Local variable declarations and assignments should be joined
NET-4655 Create rule S9415: Local functions should be marked "static" when they don't capture variables
NET-4662 Create rule S9422: Lock object fields should use "System.Threading.Lock" type

False Positive

NET-1596 Fix S5332 FP: Don't raise http warning for SOAP actions
NET-2677 Fix S2325 FP: WPF event handlers should be ignored
NET-2937 Fix S2325 FP: Awaitable 'IsCompleted' must be instanced
NET-3295 S6664: Exclude TRACE-level logging calls
NET-4142 Fix S2187, MSTEST0016 FP: Test methods hidden behind #if NET are not seen on other target frameworks
NET-4633 Fix S9023 FP: Select() projector calling an opaque custom mapper is treated as dropping every Included navigation
NET-4640 Fix S2325 FP: MAUI event handlers should be ignored
NET-4671 Fix S1121 FP: Boolean assignments in while conditions
NET-4705 Fix S8949 FP: obsolete CancellationToken overloads are considered as alternatives
NET-4710 Fix S8969 FP: null-forgiving operator flagged as redundant when operand flows through a nullable-returning implicit conversion operator
NET-4733 Fix S6966 FP: EditorBrowsable(Never) overload is suggested as an awaitable alternative
NET-4737 Fix S9022 FP: Include reported redundant via ReportReprojectedIncludes before a materializing (Func<>) terminal operator
NET-4738 Fix S9022 FP: ToDictionary(Async)/ToLookup key selector ignored when checking whether Include is dead
NET-4739 Fix T0015 FP: Local function last in a lambda or nested local function
NET-4742 Fix FP S8949: Suppress suggestion when the producer call is already configured via WithCancellation/ConfigureAwait
NET-4818 Fix S4507 FP: Alerting on !app.Environment.IsProduction()
NET-4836 Fix S4049 FP: Should not raise on Extension Properties
NET-4837 Fix S4049 FP: Should not raise on awaiter GetResult
NET-4842 Fix S3900 FP: C# 15 Extension Indexers should not raise
NET-4913 Fix S3346 FP: .NET 11 BitArray.PopCount in Debug.Assert should not be reported
NET-4916 Fix S3903 FP: C# 15 types nested in a union should not be reported
NET-4938 Fix S3260 FP: C# 15 closed classes should not be suggested for sealing
NET-5034 Fix S3263 FP: C# 15 union static field referencing another static field in the same union is always misreported as out of order

False Negative

NET-4741 Fix S9022 FN: Include not reported redundant before Max/Min when selector dereferences the included nav

Bug

NET-4547 S110 recompiles filteredClasses regexes on every compilation start, leaking IL on .NET Framework
NET-4629 Fix ChangeSyntaxElement to replace on the container
NET-4686 S1110: Restore C# quick-fix support for nested expressions
NET-4794 Consider .NET 11 Razor declaration partials generated code
NET-4895 Fix S5332 Crash: C# 15 collection expressing a clear-text URL throws AD0001

bUnit-dev/bUnit (bunit)

v2.15.2

Added
  • Support for .NET 11 GA. The net11.0 target now references the final .NET 11 packages and is compiled with runtime async. By @​linkdotnet.
Changed
  • The bunit.template now targets net11.0 by default.
  • Updated AngleSharp to 1.10.1 and AngleSharp.Css to 1.4.1.
Fixed
  • The bunit.template option to choose the target framework is now --sdk as documented, instead of --targetSdk. By @​linkdotnet.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

Copilot AI balanced review requested due to automatic review settings November 14, 2026 13:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues with the shared dependency version updates.

No open issues 🎉

What changed in this PR

Updates centrally managed NuGet dependencies for MongoDB persistence, C# analysis, and Blazor component testing.

Changes:

  • Upgrades MongoDB.Driver from 3.13.0 to 3.14.0, including deserialization security fixes.
  • Upgrades SonarAnalyzer.CSharp from 10.35.0.4138 to 10.36.0.15337.
  • Upgrades bunit from 2.14.0 to 2.15.2.
File Description
Directory.Packages.props Updates the three shared package versions without changing application code.

Review effort: Balanced

@linkdotnet
linkdotnet merged commit 98a78ae into master Nov 14, 2026
4 checks passed
@linkdotnet
linkdotnet deleted the renovate/nuget-packages branch November 14, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants