Is github.com/jackc/pgx 2.3 vulnerable?

Go · 1 release from 2.3.0 to 2.3.0 · latest github.com/jackc/pgx is 3.6.2+incompatible · checked 18 Nov 2026

Yes: 6 known advisories

Yes. github.com/jackc/pgx 2.3.0, the last 2.3 release, is affected by 6 known security advisories (2 high, 4 low), including CVE-2024-27304, CVE-2024-27289, CVE-2026-41889. At least one has no fixed release yet.

Is your project on an affected github.com/jackc/pgx?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting github.com/jackc/pgx 2.3.0

  • LowCVE-2026-41889GO-2026-500422 Jun 2026

    SQL Injection via placeholder confusion with dollar quoted string literals in github.com/jackc/pgx

    Affected
    All versions
    Fixed in
    No fix released
  • LowCVE-2026-41889GHSA-j88v-2chj-qfwx22 Apr 2026

    pgx: SQL Injection via placeholder confusion with dollar quoted string literals

    Affected
    <=3.6.2
    Fixed in
    No fix released
  • LowCVE-2024-27304GO-2024-260614 Mar 2024

    SQL injection in github.com/jackc/pgproto3 and github.com/jackc/pgx

    Affected
    All versions
    Fixed in
    No fix released
  • LowCVE-2024-27289GO-2024-260511 Mar 2024

    SQL injection in github.com/jackc/pgx/v4

    Affected
    All versions
    Fixed in
    No fix released
  • HighCVE-2024-27304GHSA-mrww-27vc-gghv4 Mar 2024

    pgx SQL Injection via Protocol Message Size Overflow

    Affected
    <4.18.2 · >=5.0.0 <5.5.4
    Fixed in
    4.18.2, 5.5.4
  • HighCVE-2024-27289GHSA-m7wr-2xf7-cm9p4 Mar 2024

    pgx SQL Injection via Line Comment Creation

    Affected
    <4.18.2
    Fixed in
    4.18.2

Which of your client projects are still on github.com/jackc/pgx 2.3?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact github.com/jackc/pgx version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other github.com/jackc/pgx versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the Go registry. Refreshed daily.