fix: patch Snyk x/crypto SSH and Go stdlib vulnerabilities#100
Merged
Conversation
Bump golang.org/x/crypto replace directive from v0.50.0 to v0.52.0 to fix 11 CVE-2026-* vulnerabilities in x/crypto/ssh, ssh/agent, and ssh/knownhosts. Bump Go from 1.26.2 to 1.26.3 to fix 8 stdlib vulns in std/net, net/http, html/template, net/mail, and net/http/httputil. Update .snyk safety-net ignores for the new CVEs (transitive ghost deps that Snyk may still flag despite the replace directive).
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
There was a problem hiding this comment.
Pull request overview
This PR updates the Go toolchain and the pinned golang.org/x/crypto version to address newly reported Snyk vulnerabilities, and refreshes .snyk ignore entries to match the new CVE set.
Changes:
- Bump Go version from
1.26.2to1.26.3across workspace and modules. - Update
replace golang.org/x/cryptofromv0.50.0tov0.52.0(root +_examples). - Replace prior
.snykignore entries with updated Snyk IDs/CVE-2026-* rationale blocks.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| go.work | Updates workspace Go version to 1.26.3. |
| go.mod | Updates module Go version and pins golang.org/x/crypto via replace to v0.52.0. |
| .snyk | Refreshes ignore entries for updated Snyk findings/CVEs related to golang.org/x/crypto. |
| _examples/go.mod | Keeps examples module aligned with Go 1.26.3 and x/crypto v0.52.0 replace pin. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Update section comment from "not in go.mod" to "not a direct require" since a replace directive for x/crypto does exist in go.mod.
corvramirez
approved these changes
May 26, 2026
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
golang.org/x/cryptoreplace directive from v0.50.0 → v0.52.0 to fix 11 CVE-2026-* vulnerabilities inx/crypto/ssh,ssh/agent, andssh/knownhostsstd/net,net/http,html/template,net/mail, andnet/http/httputil.snyksafety-net ignores for the new CVEs (replaces old CVE-2025-* entries with CVE-2026-* entries)Vulnerabilities Fixed
golang.org/x/crypto (11 CVEs — all fixed in v0.52.0)
Go stdlib (8 CVEs — all fixed in Go 1.26.3)
std/netDouble Free (CVE-2026-33811),net/httpInfinite Loop,html/templateXSS bypasses (x2),net/mailquadratic concat (x2),net/http/httputilquery param forwardingTest plan
go test ./(unit tests) — passcd _examples && go test ./.(integration tests) — passgovulncheck -show verbose ./...— zero vulnerabilities at all levelsJIRA: FL-29711