Skip to content

Bump Testcontainers.MsSql to 4.14.0 to clear NU1903 - #4652

Merged
jbogard merged 1 commit into
mainfrom
deps/testcontainers-4.14
Sep 3, 2026
Merged

jbogard merged 1 commit into
mainfrom
deps/testcontainers-4.14

Conversation

@jbogard

@jbogard jbogard commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

CI currently fails on every PR and on main during restore, before anything compiles:

src/IntegrationTests/AutoMapper.IntegrationTests.csproj : error NU1903: Warning As Error:
Package 'SSH.NET' 2024.2.0 has a known high severity vulnerability
https://github.com/advisories/GHSA-q939-rpr3-3284

Testcontainers.MsSql 4.8.1 pulls SSH.NET 2024.2.0 transitively. The advisory covers SSH.NET <= 2025.1.0 and is patched in 2026.0.0, so it started breaking builds when it was published — main last built green on 2026-07-01, and restore failures block the whole solution.

Testcontainers 4.14.0 depends on SSH.NET 2026.0.0, so bumping Testcontainers.MsSql to 4.14.0 clears it. 4.13.0 and earlier still resolve to 2025.1.0 and stay vulnerable.

Verified locally: restore is clean and AutoMapper.IntegrationTests builds with 0 warnings and 0 errors. The integration tests themselves need Docker and were not run locally — leaving that to CI.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Wm2m61jXrAs4FheXR5TufH

Testcontainers.MsSql 4.8.1 pulls SSH.NET 2024.2.0 transitively, which is
covered by GHSA-q939-rpr3-3284 (high severity, patched in 2026.0.0). NuGet
audit treats it as an error, so restore fails for the whole solution and no
build can complete.

Testcontainers 4.14.0 depends on SSH.NET 2026.0.0.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Wm2m61jXrAs4FheXR5TufH
Copilot AI lite review requested due to automatic review settings September 3, 2026 21:32

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

The change is a targeted dependency bump in the test project to resolve a restore-blocking vulnerability warning, with no additional code changes introduced.

Pull request overview

This PR updates the IntegrationTests project’s Testcontainers.MsSql dependency to eliminate a transitive dependency vulnerability (NU1903) that is currently failing restore in CI due to warnings being treated as errors across the repo.

Changes:

  • Bump Testcontainers.MsSql from 4.8.1 to 4.14.0 in AutoMapper.IntegrationTests to clear the transitive SSH.NET vulnerability warning that is blocking restores.
File summaries
File Description
src/IntegrationTests/AutoMapper.IntegrationTests.csproj Updates Testcontainers.MsSql package version to unblock restore/CI by resolving the vulnerable transitive dependency.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@jbogard
jbogard merged commit a222d7d into main Sep 3, 2026
7 checks passed
@jbogard
jbogard deleted the deps/testcontainers-4.14 branch September 3, 2026 21:37
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