chore: update dependencies to fix security vulnerabilities#19
Merged
chore: update dependencies to fix security vulnerabilities#19
Conversation
Update golang.org/x/crypto from v0.39.0 to v0.46.0 to resolve: - CVE for unbounded memory consumption in ssh - CVE for panic in ssh/agent due to malformed messages Also update related dependencies: - golang.org/x/net: v0.41.0 -> v0.48.0 - golang.org/x/sys: v0.33.0 -> v0.39.0 - golang.zx2c4.com/wireguard: 2023-02-23 -> 2025-05-21 - golang.zx2c4.com/wintun: 2021-11-04 -> 2023-01-26
Update MemoryTUN to implement the new batch-based tun.Device interface required by wireguard v0.0.0-20250521234502: - Add BatchSize() method returning 1 - Update Read() to use batch interface ([][]byte, []int) - Update Write() to support batch operations - Update all test cases to use new batch interface
Add format specifiers to logger test calls to resolve: - non-constant format string in call to log() - non-constant format string in call to Infof()
The TestTunnel_DialWireGuard test was hanging in CI when attempting to connect to unknown IPs. Added a 2-second timeout context to prevent indefinite hanging on connection attempts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates all dependencies to their latest versions and fixes two moderate security vulnerabilities in
golang.org/x/crypto/ssh.Security Fixes
Dependency Updates
golang.org/x/crypto: v0.39.0 → v0.46.0golang.org/x/net: v0.41.0 → v0.48.0golang.org/x/sys: v0.33.0 → v0.39.0golang.zx2c4.com/wireguard: 2023-02-23 → 2025-05-21golang.zx2c4.com/wintun: 2021-11-04 → 2023-01-26Breaking Changes Fixed
The wireguard package update included breaking changes to the
tun.Deviceinterface:BatchSize()method toMemoryTUNRead()andWrite()methods to support batch operationsTesting