Skip to content

Bump pgx version to v5#277

Open
dsychin wants to merge 1 commit into
stripe:mainfrom
dsychin:bump-pgx-v5
Open

Bump pgx version to v5#277
dsychin wants to merge 1 commit into
stripe:mainfrom
dsychin:bump-pgx-v5

Conversation

@dsychin
Copy link
Copy Markdown

@dsychin dsychin commented Apr 23, 2026

Description

Increase the version of jackc/pgx from v4 to v5.

Version 4 of pgx is EOL as of July 1, 2025.

Motivation

pgx/v4 depends on the archived jackc/pgproto3/v2 and has an active security advisory GHSA-jqcq-xjh3-6g23.

The latest version which has moved to the pgx repo does not have this vulnerability.

Testing

Ran the docker test container and the test pipeline on my forked repo.

@cla-assistant
Copy link
Copy Markdown

cla-assistant Bot commented Apr 23, 2026

CLA assistant check
All committers have signed the CLA.

@dsychin dsychin changed the title bump pgx version to v5 Bump pgx version to v5 Apr 23, 2026
@mado-m
Copy link
Copy Markdown

mado-m commented May 15, 2026

Thanks @dsychin for putting this up.

We're a downstream user of pg-schema-diff and are running into the same problem from the consumer side. Because pg-schema-diff pulls in github.com/jackc/pgx/v4 as a direct dependency, our go.mod ends up with pgx/v4 as an indirect dependency even though we don't import it ourselves.

This is currently causing two concrete issues for us:

Renovate keeps opening a vulnerability PR for pgx/v4 (CVE-2026-41889 / GHSA-j88v-2chj-qfwx) which we can't merge — go mod tidy reverts the bump back to v4 as long as pg-schema-diff requires it.
pgx/v4 has been EOL since July 1, 2025, so we can no longer expect security fixes there.
Getting this PR merged would unblock the v5 upgrade for everyone who consumes pg-schema-diff transitively. Is there anything we can help with to move this forward (rebase, additional tests, CI fixes, etc.)? Happy to contribute if it helps.

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