Skip to content

Dependencies: Update NuGet packages to latest minor and patch versions - #23269

Merged
Zeegaan merged 3 commits into
v17/devfrom
v17/task/update-dependencies
Jul 3, 2026
Merged

Dependencies: Update NuGet packages to latest minor and patch versions#23269
Zeegaan merged 3 commits into
v17/devfrom
v17/task/update-dependencies

Conversation

@AndyButland

@AndyButland AndyButland commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Description

Routine dependency maintenance for the 17.6 release (targets v17/dev). Updates all NuGet packages that were behind to their latest available minor or patch version, as reported by dotnet-outdated. No major-version updates are included.

Versions are managed centrally in the two Directory.Packages.props files, plus the inline version in Umbraco.Web.UI.csproj and the templates/UmbracoExtension project.

A direct dependency to Microsoft.OpenApi has been added to resolve what is otherwise reported as a vulnerability.

Production packages (Directory.Packages.props)

Package From To
Nerdbank.GitVersioning 3.9.50 3.10.85
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation 10.0.6 10.0.9
Microsoft.Data.Sqlite 10.0.6 10.0.9
Microsoft.EntityFrameworkCore.Sqlite / .SqlServer 10.0.6 10.0.9
Microsoft.Extensions.* (Caching, Configuration, DependencyInjection, FileProviders, Hosting, Http, Identity, Logging, Options) 10.0.6 10.0.9
Microsoft.Extensions.Caching.Hybrid 10.5.0 10.7.0
System.Linq.Async 7.0.0 7.0.1
Umbraco.JsonSchema.Extensions 0.4.0 0.4.3
Examine / Examine.Core 3.8.0 3.9.0
MailKit 4.16.0 4.17.0
OpenIddict.Abstractions / .AspNetCore / .EntityFrameworkCore 7.4.0 7.5.0
Swashbuckle.AspNetCore 10.1.7 10.2.3
System.Security.Cryptography.Xml (transitive pin) 10.0.6 10.0.9

Test packages (tests/Directory.Packages.props)

Package From To
Microsoft.AspNetCore.Mvc.Testing 10.0.6 10.0.9
Microsoft.Extensions.Logging.Debug 10.0.6 10.0.9
Microsoft.Extensions.TimeProvider.Testing 10.6.0 10.7.0
Microsoft.NET.Test.Sdk 18.4.0 18.7.0
System.Data.Odbc / System.Data.OleDb 10.0.6 10.0.9

Inline / template versions

  • src/Umbraco.Web.UI/Umbraco.Web.UI.csproj: Microsoft.EntityFrameworkCore.Design 10.0.6 → 10.0.9
  • templates/UmbracoExtension: Swashbuckle.AspNetCore 10.1.7 → 10.2.3 (keeping it aligned with the root file)

Deliberately left unchanged

  • Any package where only a major update is available (out of scope for this PR) — e.g. Markdig (held at 0.45.0), Microsoft.CodeAnalysis.CSharp (4.x), Microsoft.Build.Tasks.Core (17.x), Asp.Versioning.* (8.x).
  • Pre-release / held packages: StyleCop.Analyzers (beta).
  • Transitive security pins for Dazinator.Extensions.FileProviders and Markdown.

The System.Security.Cryptography.Xml transitive pin was bumped alongside the other Microsoft 10.0.x packages because the updated Examine and OpenIddict now require it at >= 10.0.7; keeping it at the old version caused a NuGet downgrade error.

Testing

Solution should build and CI checks pass.

Bump all NuGet dependencies that were behind to their latest available
minor or patch release, as reported by dotnet-outdated. No major-version
updates are included, and pre-release/intentionally-held packages
(Umbraco.Code, StyleCop.Analyzers, transitive security pins for
Dazinator/Markdown) are left untouched.

The System.Security.Cryptography.Xml transitive pin is bumped in step
with the other Microsoft 10.0.x packages, since the updated Examine and
OpenIddict now require it at >= 10.0.7.

Smoke-tested: full Release solution build (0 errors) and the
Umbraco.Tests.UnitTests suite (all green).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 2, 2026 10:00
@claude

claude Bot commented Jul 2, 2026

Copy link
Copy Markdown

Claude finished @AndyButland's task in 2m 33s —— View job


PR Review

Target: origin/v17/dev · Based on commit: 46775408 · Classified as: Config-only

Bumps 31 NuGet packages to their latest minor/patch versions for the 17.6 release; no major-version updates.


Suggestions

  • Directory.Packages.props:93: The TODO comment reads "Remove this pinned dependency when Examine updates its Microsoft.AspNetCore.DataProtection reference", but per the PR description, OpenIddict 7.5.0 now also requires System.Security.Cryptography.Xml >= 10.0.7. The removal condition is now incomplete — updating Examine alone wouldn't make the pin safe to drop. Suggest updating both comment lines to mention OpenIddict so future maintainers don't prematurely remove it:

Approved with Suggestions for improvement

Good to go, but please carefully consider the importance of the suggestions.

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.

Pull request overview

Routine dependency maintenance for the v17/dev (17.6) line, updating centrally-managed NuGet packages (plus a couple of inline/template references) to the latest available minor/patch versions, keeping the repo’s package versions aligned and avoiding downgrade conflicts.

Changes:

  • Bumped centrally-managed production dependencies in Directory.Packages.props (Microsoft 10.0.6→10.0.9, Examine 3.8→3.9, OpenIddict 7.4→7.5, Swashbuckle 10.1.7→10.2.3, etc.).
  • Updated test package versions in tests/Directory.Packages.props to match the newer Microsoft patch levels.
  • Aligned inline/template package references with the central versions (EFCore.Design in Umbraco.Web.UI.csproj, Swashbuckle in the extension template).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
Directory.Packages.props Central minor/patch NuGet bumps, incl. transitive pin update and Swashbuckle alignment note.
tests/Directory.Packages.props Test dependency bumps to corresponding patch/minor versions.
src/Umbraco.Web.UI/Umbraco.Web.UI.csproj Inline EF Core Design package version bump (project opts out of central management).
templates/UmbracoExtension/Umbraco.Extension.csproj Swashbuckle version bump to stay aligned with central package version.

AndyButland and others added 2 commits July 2, 2026 12:20
…onale

Address PR review feedback on the pinned-dependency comments:

- Microsoft.EntityFrameworkCore.Design 10.0.9 no longer pulls a
  (vulnerable) Microsoft.Build.Tasks.Core transitively, so the direct
  override reference in Umbraco.Web.UI is removed along with its comment.
  Verified with `dotnet nuget why` and `dotnet list package --vulnerable`.

- The System.Security.Cryptography.Xml transitive pin is still required
  (removing it resolves the vulnerable 8.0.0). Its comment is corrected to
  name the real drivers (Examine via Microsoft.AspNetCore.DataProtection
  and OpenIddict's *.DataProtection packages) and drops the stale "8.0.4".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Microsoft.AspNetCore.OpenApi / Swashbuckle only require Microsoft.OpenApi
>= 2.0.0, which resolves to the vulnerable 2.0.0 (CVE-2026-49451,
GHSA-v5pm-xwqc-g5wc: stack overflow on circular schema references). Pin
forward to the latest patched 2.x (2.9.0):

- transitive pin in Directory.Packages.props for centrally-managed projects
- direct reference in Umbraco.Web.UI, which opts out of central package
  management so the transitive pin does not reach it

Verified Microsoft.OpenApi now resolves to 2.9.0 everywhere and the
advisory no longer appears in `dotnet list package --vulnerable`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Jul 2, 2026

Copy link
Copy Markdown

@Zeegaan Zeegaan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me

@Zeegaan
Zeegaan merged commit 0458f78 into v17/dev Jul 3, 2026
31 checks passed
@Zeegaan
Zeegaan deleted the v17/task/update-dependencies branch July 3, 2026 01:30
@Zeegaan Zeegaan added dependencies Pull requests that update a dependency file release/17.1.0 labels Jul 3, 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 release/17.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants