Is org.postgresql:postgresql 42.5 vulnerable?

Maven · 7 releases from 42.5.0 to 42.5.6 · latest org.postgresql:postgresql is 42.7.14 · checked 18 Nov 2026

Yes: 1 known advisory

Yes. org.postgresql:postgresql 42.5.6, the last 42.5 release, is affected by 1 known security advisory (1 high), including CVE-2026-42198. 2 more affect earlier 42.5.x releases. Upgrade to 42.7.11 or later to fix all of them.

Upgrade with:mvn versions:use-dep-version -Dincludes=org.postgresql:postgresql -DdepVersion=42.7.11 -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.5.6

  • HighCVE-2026-42198GHSA-98qh-xjc8-98pq5 May 2026

    pgjdbc: Unbounded PBKDF2 iterations in SCRAM authentication allows CPU exhaustion DoS

    Affected
    >=42.2.0 <42.7.11
    Fixed in
    42.7.11

Fixed within 42.5.x, affecting earlier releases

  • 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
  • MediumCVE-2022-41946GHSA-562r-vg33-8x8h23 Nov 2022

    TemporaryFolder on unix-like systems does not limit access to created files

    Affected
    >=42.2.0 <42.2.27 · >=42.3.0 <42.3.8 · >=42.4.0 <42.4.3 · >=42.5.0 <42.5.1
    Fixed in
    42.2.27, 42.3.8, 42.4.3, 42.5.1

Every org.postgresql:postgresql 42.5.x release

Affected: 42.5.0 to 42.5.6. Latest org.postgresql:postgresql: 42.7.14.

VersionKnown advisories
org.postgresql:postgresql 42.5.6CVE-2026-42198
org.postgresql:postgresql 42.5.5CVE-2026-42198
org.postgresql:postgresql 42.5.4CVE-2026-42198, CVE-2024-1597
org.postgresql:postgresql 42.5.3CVE-2026-42198, CVE-2024-1597
org.postgresql:postgresql 42.5.2CVE-2026-42198, CVE-2024-1597
org.postgresql:postgresql 42.5.1CVE-2026-42198, CVE-2024-1597
org.postgresql:postgresql 42.5.0CVE-2026-42198, CVE-2024-1597, CVE-2022-41946

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

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.