Skip to content

fix(deps): bump jackc/pgx/v5 past two real CVEs (memory-safety + SQL injection) - #193

Open
boazgarty wants to merge 1 commit into
cockroachdb:masterfrom
boazgarty:fix-cve/pgx-x-crypto
Open

boazgarty wants to merge 1 commit into
cockroachdb:masterfrom
boazgarty:fix-cve/pgx-x-crypto

Conversation

@boazgarty

@boazgarty boazgarty commented Sep 12, 2026 •

Copy link
Copy Markdown

Summary

github.com/jackc/pgx/v5 (a direct dependency) is pinned at v5.7.2, affected by:

  • GHSA-9jj7-4m8r-rfcm / CVE-2026-33816 and GHSA-xgrm-4fwx-7qm8 / CVE-2026-33815
    (both memory-safety), 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 by running go get and
watching it happen, not assumed.

Correction (edited after opening)

This PR originally also bumped golang.org/x/crypto to v0.55.0, citing 9
further advisories. That claim was wrong and has been removed. All 9 are
scoped to golang.org/x/crypto/ssh, ssh/agent, and ssh/knownhosts — this
module's real dependency graph never reaches any of those packages (checked
with go list -deps ./...). 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 and what this PR now does. Sorry for the noise on the first version
of this diff.

Test plan

  • go build ./... succeeds
  • go vet ./... clean (one pre-existing, unrelated unreachable code
    note in testserver/binaries.go, not touched by this change)
  • go test ./... passes for every package except testserver, which
    needs real CockroachDB binaries this environment doesn't have —
    confirmed via grep that testserver imports neither pgx nor
    x/crypto, so it's unaffected either way

🤖 Generated with Claude Code

@cockroach-teamcity

Copy link
Copy Markdown
Member

This change is Reviewable

…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 boazgarty changed the title fix(deps): bump jackc/pgx/v5 and golang.org/x/crypto past known CVEs fix(deps): bump jackc/pgx/v5 past two real CVEs (memory-safety + SQL injection) Sep 12, 2026
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.

2 participants