Is com.h2database:h2 2.1 vulnerable?

Maven · 3 releases from 2.1.210 to 2.1.214 · latest com.h2database:h2 is 2.5.252 · checked 18 Nov 2026

Yes: 1 known advisory

Yes. com.h2database:h2 2.1.214, the last 2.1 release, is affected by 1 known security advisory (1 high), including 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 2.1.214

  • 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

Every com.h2database:h2 2.1.x release

Affected: 2.1.210 to 2.1.214. Latest com.h2database:h2: 2.5.252.

VersionKnown advisories
com.h2database:h2 2.1.214CVE-2022-45868
com.h2database:h2 2.1.212CVE-2022-45868
com.h2database:h2 2.1.210CVE-2022-45868

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

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.