github.com/jackc/pgx/v4 vulnerabilities

Registry
Go
Latest
4.18.3

6 known advisories

The latest version, 4.18.3, is affected by 2 of them.

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

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

Security advisories for github.com/jackc/pgx/v4

  • 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
    <=4.18.3
    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
    <4.18.2
    Fixed in
    4.18.2
  • LowCVE-2024-27289GO-2024-260511 Mar 2024

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

    Affected
    <4.18.2
    Fixed in
    4.18.2
  • HighCVE-2024-27304GHSA-mrww-27vc-gghv4 Mar 2024

    pgx SQL Injection via Protocol Message Size Overflow

    Affected
    <4.18.2
    Fixed in
    4.18.2
  • HighCVE-2024-27289GHSA-m7wr-2xf7-cm9p4 Mar 2024

    pgx SQL Injection via Line Comment Creation

    Affected
    <4.18.2
    Fixed in
    4.18.2

Is your github.com/jackc/pgx/v4 version vulnerable?

Which of your client projects still run an old github.com/jackc/pgx/v4?

NPMscan reads the go.mod in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other Go packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the Go registry.