Skip to content

fix(deps): bump Testcontainers to 4.14.0 to clear the SSH.NET advisory - #1369

Open
maxiar wants to merge 3 commits into
fullstackhero:mainfrom
maxiar:fix/testcontainers-ssh-net-advisory
Open

fix(deps): bump Testcontainers to 4.14.0 to clear the SSH.NET advisory#1369
maxiar wants to merge 3 commits into
fullstackhero:mainfrom
maxiar:fix/testcontainers-ssh-net-advisory

Conversation

@maxiar

@maxiar maxiar commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Problem

dotnet restore fails for Integration.Tests and Integration.Middleware.Tests:

error NU1903: Warning As Error: Package 'SSH.NET' 2025.1.0 has a known high
severity vulnerability, https://github.com/advisories/GHSA-q939-rpr3-3284

SSH.NET is not a direct dependency, which is why it does not appear in Directory.Packages.props. It arrives transitively:

Testcontainers.PostgreSql / .Redis / .Minio (4.11.0)
  └── Testcontainers (4.11.0)
        └── SSH.NET (2025.1.0)

GHSA-q939-rpr3-3284 (high) — ScpClient recursive download allows arbitrary file write via server-controlled SCP filenames. Affects <= 2025.1.0; first patched in 2026.0.0.

Fix

Bump the three Testcontainers.* packages 4.11.04.14.0. Testcontainers 4.14.0 already depends on the patched SSH.NET 2026.0.0, so the advisory clears without adding a transitive pin under the "Transitive security pins" group — one less pin to remember to remove later.

Verification

  • dotnet restore src/FSH.Starter.slnx — succeeds, all 51 projects, no NU1903.
  • dotnet build on both integration test projects — 0 warnings / 0 errors under TreatWarningsAsErrors.
  • Integration tests themselves were not run locally (they need Docker). Worth a CI eye, since this crosses three minor Testcontainers releases (4.11 → 4.14).

Notes

  • Test-only dependency change: no runtime, endpoint, or config surface moves, so no docs-repo or changelog entry (golden rule 10 does not apply here).

🤖 Generated with Claude Code

Eduardo Jimenez and others added 3 commits September 1, 2026 15:14
Testcontainers 4.11.0 depends on SSH.NET 2025.1.0, which carries a
high-severity advisory (GHSA-q939-rpr3-3284: ScpClient recursive download
allows arbitrary file write via server-controlled SCP filenames). NuGetAudit
raises NU1903 and, under TreatWarningsAsErrors, fails restore for
Integration.Tests and Integration.Middleware.Tests.

Testcontainers 4.14.0 already depends on the patched SSH.NET 2026.0.0, so
bumping the three Testcontainers.* packages clears the advisory without a
transitive pin that would later need removing.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Testcontainers 4.11.0 depends on SSH.NET 2025.1.0, which carries a
high-severity advisory (GHSA-q939-rpr3-3284: ScpClient recursive download
allows arbitrary file write via server-controlled SCP filenames). NuGetAudit
raises NU1903 and, under TreatWarningsAsErrors, fails restore for
Integration.Tests and Integration.Middleware.Tests.

Testcontainers 4.14.0 already depends on the patched SSH.NET 2026.0.0, so
bumping the three Testcontainers.* packages clears the advisory without a
transitive pin that would later need removing.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…otnet-starter-kit into fix/testcontainers-ssh-net-advisory
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.

1 participant