Is com.h2database:h2 1.4 vulnerable?

Maven · 24 releases from 1.4.177 to 1.4.200 · latest com.h2database:h2 is 2.5.252 · checked 18 Nov 2026

Yes: 4 known advisories

Yes. com.h2database:h2 1.4.200, the last 1.4 release, is affected by 4 known security advisories (2 critical, 2 high), including CVE-2022-23221, CVE-2021-42392, CVE-2022-45868. Upgrade to 2.2.220 or later to fix all of them.

Upgrade with:mvn versions:use-dep-version -Dincludes=com.h2database:h2 -DdepVersion=2.2.220 -DforceVersion=true

Is your project on an affected com.h2database:h2?

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 com.h2database:h2 1.4.200

  • HighCVE-2022-45868GHSA-22wj-vf5f-wrvj23 Nov 2022

    Password exposure in H2 Database

    Affected
    >=1.4.198 <2.2.220
    Fixed in
    2.2.220
  • CriticalCVE-2022-23221GHSA-45hx-wfhj-473x21 Jan 2022

    Arbitrary code execution in H2 Console

    Affected
    <2.1.210
    Fixed in
    2.1.210
  • CriticalCVE-2021-42392GHSA-h376-j262-vhq66 Jan 2022

    RCE in H2 Console

    Affected
    >=1.1.100 <2.0.206
    Fixed in
    2.0.206
  • HighCVE-2021-23463GHSA-7rpj-hg47-cx6216 Dec 2021

    Improper Restriction of XML External Entity Reference in com.h2database:h2.

    Affected
    >=1.4.198 <2.0.202
    Fixed in
    2.0.202

Every com.h2database:h2 1.4.x release

Affected: 1.4.177 to 1.4.200. Latest com.h2database:h2: 2.5.252.

VersionKnown advisories
com.h2database:h2 1.4.200CVE-2022-45868, CVE-2022-23221, CVE-2021-42392, CVE-2021-23463
com.h2database:h2 1.4.199CVE-2022-45868, CVE-2022-23221, CVE-2021-42392, CVE-2021-23463
com.h2database:h2 1.4.198CVE-2022-45868, CVE-2022-23221, CVE-2021-42392, CVE-2021-23463
com.h2database:h2 1.4.197CVE-2022-23221, CVE-2021-42392
com.h2database:h2 1.4.196CVE-2022-23221, CVE-2021-42392
com.h2database:h2 1.4.195CVE-2022-23221, CVE-2021-42392
com.h2database:h2 1.4.194CVE-2022-23221, CVE-2021-42392
com.h2database:h2 1.4.193CVE-2022-23221, CVE-2021-42392
com.h2database:h2 1.4.192CVE-2022-23221, CVE-2021-42392
com.h2database:h2 1.4.191CVE-2022-23221, CVE-2021-42392
com.h2database:h2 1.4.190CVE-2022-23221, CVE-2021-42392
com.h2database:h2 1.4.189CVE-2022-23221, CVE-2021-42392
com.h2database:h2 1.4.188CVE-2022-23221, CVE-2021-42392
com.h2database:h2 1.4.187CVE-2022-23221, CVE-2021-42392
com.h2database:h2 1.4.186CVE-2022-23221, CVE-2021-42392
com.h2database:h2 1.4.185CVE-2022-23221, CVE-2021-42392
com.h2database:h2 1.4.184CVE-2022-23221, CVE-2021-42392
com.h2database:h2 1.4.183CVE-2022-23221, CVE-2021-42392
com.h2database:h2 1.4.182CVE-2022-23221, CVE-2021-42392
com.h2database:h2 1.4.181CVE-2022-23221, CVE-2021-42392
com.h2database:h2 1.4.180CVE-2022-23221, CVE-2021-42392
com.h2database:h2 1.4.179CVE-2022-23221, CVE-2021-42392
com.h2database:h2 1.4.178CVE-2022-23221, CVE-2021-42392
com.h2database:h2 1.4.177CVE-2022-23221, CVE-2021-42392

Which of your client projects are still on com.h2database:h2 1.4?

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

Other com.h2database:h2 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.