Is org.postgresql:postgresql 42.0 vulnerable?

Maven · 1 release from 42.0.0 to 42.0.0 · latest org.postgresql:postgresql is 42.7.14 · checked 18 Nov 2026

Yes: 4 known advisories

Yes. org.postgresql:postgresql 42.0.0, the last 42.0 release, is affected by 4 known security advisories (1 critical, 3 high), including CVE-2024-1597, CVE-2022-31197, CVE-2020-13692. Upgrade to 42.2.28 or later to fix all of them.

Upgrade with:mvn versions:use-dep-version -Dincludes=org.postgresql:postgresql -DdepVersion=42.2.28 -DforceVersion=true

Is your project on an affected org.postgresql:postgresql?

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

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

Advisories affecting org.postgresql:postgresql 42.0.0

  • CriticalCVE-2024-1597GHSA-24rp-q3w6-vc5621 Feb 2024

    org.postgresql:postgresql vulnerable to SQL Injection via line comment generation

    Affected
    <42.2.28 · >=42.3.0 <42.3.9 · >=42.4.0 <42.4.4 · >=42.5.0 <42.5.5 · >=42.6.0 <42.6.1 · >=42.7.0 <42.7.2
    Fixed in
    42.2.28, 42.3.9, 42.4.4, 42.5.5, 42.6.1, 42.7.2
  • HighCVE-2022-31197GHSA-r38f-c4h4-hqq26 Aug 2022

    PostgreSQL JDBC Driver SQL Injection in ResultSet.refreshRow() with malicious column names

    Affected
    <42.2.26 · >=42.4.0 <42.4.1 · >=42.3.0 <42.3.7
    Fixed in
    42.2.26, 42.3.7, 42.4.1
  • HighCVE-2020-13692GHSA-88cc-g835-76rp10 Feb 2022

    Improper Restriction of XML External Entity Reference

    Affected
    >=9.4.1212.jre6 <42.2.13
    Fixed in
    42.2.13
  • HighCVE-2022-21724GHSA-v7wg-cpwc-24m42 Feb 2022

    pgjdbc Does Not Check Class Instantiation when providing Plugin Classes

    Affected
    >=9.4.1208 <42.2.25 · >=42.3.0 <42.3.2
    Fixed in
    42.2.25, 42.3.2

Which of your client projects are still on org.postgresql:postgresql 42.0?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact org.postgresql:postgresql version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other org.postgresql:postgresql versions

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