Skip to content

Bump Testcontainers from 4.12.0 to 4.14.0 to clear the SSH.NET advisory - #43

Merged
marklauter merged 1 commit into
mainfrom
fix/testcontainers-ssh-net
Sep 5, 2026
Merged

marklauter merged 1 commit into
mainfrom
fix/testcontainers-ssh-net

Conversation

@marklauter

@marklauter marklauter commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Closes the SSH.NET Dependabot alert (GHSA-q939-rpr3-3284 / CVE-2026-48798, high).

Pool never references SSH.NET directly. The only path is Testcontainers 4.12.0 → SSH.NET 2025.1.0, in samples/Smtp.Pool.Integration.Tests. Testcontainers 4.14.0 depends on the patched SSH.NET 2026.0.0, so bumping the direct dependency clears the advisory without pinning a transitive package.

The advisory currently fails NU1903 (warning-as-error) on restore, which breaks samples/Smtp.Pool.slnx locally and the submit-nuget job in the dependency-submission workflow, which restores every project in the repo. The .NET Tests workflow is unaffected — it only builds Pool.slnx, which excludes the sample test projects.

Verified: SSH.NET resolves to 2026.0.0 in the integration-test assets, samples/Smtp.Pool.slnx builds clean, and the build gate (format → build → test) is green on Pool.slnx — 144/144 passing, coverage 99.32/92.44/95.31.

🤖 Generated with Claude Code

https://claude.ai/code/session_018oQ2H2BWF3GVGTR9udJTRG

Testcontainers 4.12.0 pulls SSH.NET 2025.1.0 transitively, which carries
GHSA-q939-rpr3-3284 (high: ScpClient recursive download allows arbitrary file
write via server-controlled SCP filenames). Pool never uses SSH.NET directly;
the only path is Testcontainers in samples/Smtp.Pool.Integration.Tests.

Testcontainers 4.14.0 depends on the patched SSH.NET 2026.0.0, so the bump
clears NU1903 and lets samples/Smtp.Pool.slnx build again.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018oQ2H2BWF3GVGTR9udJTRG
@marklauter
marklauter merged commit 2274d86 into main Sep 5, 2026
8 checks passed
@marklauter
marklauter deleted the fix/testcontainers-ssh-net branch September 5, 2026 17:59
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