Repository navigation
Conversation
Member
…injection) github.com/jackc/pgx/v5 (a direct dependency) is pinned at v5.7.2, affected by: - GHSA-9jj7-4m8r-rfcm / CVE-2026-33816 (memory-safety) and GHSA-xgrm-4fwx-7qm8 / CVE-2026-33815 (memory-safety), both fixed in v5.9.0 - GHSA-j88v-2chj-qfwx / CVE-2026-41889 / GO-2026-5004 (SQL injection via placeholder confusion with dollar-quoted strings), fixed in v5.9.2 Bumped to v5.9.2 (covers all three). The go directive move (1.23 -> 1.25.0) is pgx v5.9.2's own real requirement, confirmed via `go get`, not a side effect of anything else. Note: this PR previously also bumped golang.org/x/crypto to v0.55.0, citing 9 further advisories. That claim was incorrect and has been removed here -- all 9 are scoped to golang.org/x/crypto/ssh, ssh/agent, and ssh/knownhosts, and this module's real dependency graph doesn't reach any of those packages (confirmed via `go list -deps ./...`; `golang.org/x/crypto` here resolves only via pgx's own transitive requirement, unused directly). A clean `go get github.com/jackc/pgx/v5@v5.9.2 && go mod tidy` leaves x/crypto untouched at v0.31.0, which is the correct outcome. Apologies for the noise on the first version of this diff.
boazgarty
force-pushed
the
fix-cve/pgx-x-crypto
branch
from
September 12, 2026 17:34
947e3ed to
141ac68
Compare
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
github.com/jackc/pgx/v5(a direct dependency) is pinned atv5.7.2, affected by:GHSA-9jj7-4m8r-rfcm/CVE-2026-33816andGHSA-xgrm-4fwx-7qm8/CVE-2026-33815(both memory-safety), fixed in
v5.9.0GHSA-j88v-2chj-qfwx/CVE-2026-41889/GO-2026-5004(SQL injection viaplaceholder confusion with dollar-quoted strings), fixed in
v5.9.2Bumped to
v5.9.2(covers all three). Thegodirective move (1.23→1.25.0)is
pgx v5.9.2's own real requirement — confirmed by runninggo getandwatching it happen, not assumed.
Correction (edited after opening)
This PR originally also bumped
golang.org/x/cryptotov0.55.0, citing 9further advisories. That claim was wrong and has been removed. All 9 are
scoped to
golang.org/x/crypto/ssh,ssh/agent, andssh/knownhosts— thismodule's real dependency graph never reaches any of those packages (checked
with
go list -deps ./...). A cleango get github.com/jackc/pgx/v5@v5.9.2 && go mod tidyleavesx/cryptountouched atv0.31.0, which is the correctoutcome and what this PR now does. Sorry for the noise on the first version
of this diff.
Test plan
go build ./...succeedsgo vet ./...clean (one pre-existing, unrelatedunreachable codenote in
testserver/binaries.go, not touched by this change)go test ./...passes for every package excepttestserver, whichneeds real CockroachDB binaries this environment doesn't have —
confirmed via
grepthattestserverimports neitherpgxnorx/crypto, so it's unaffected either way🤖 Generated with Claude Code