Is com.google.code.gson:gson 2.7 vulnerable?

Maven · 1 release from 2.7.0 to 2.7.0 · latest com.google.code.gson:gson is 2.15.0 · checked 18 Nov 2026

Yes: 1 known advisory

Yes. com.google.code.gson:gson 2.7.0, the last 2.7 release, is affected by 1 known security advisory (1 high), including CVE-2022-25647. Upgrade to 2.8.9 or later to fix all of them.

Upgrade with:mvn versions:use-dep-version -Dincludes=com.google.code.gson:gson -DdepVersion=2.8.9 -DforceVersion=true

Is your project on an affected com.google.code.gson:gson?

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.google.code.gson:gson 2.7.0

  • HighCVE-2022-25647GHSA-4jrv-ppp4-jm573 May 2022

    Deserialization of Untrusted Data in Gson

    Affected
    <2.8.9
    Fixed in
    2.8.9

Which of your client projects are still on com.google.code.gson:gson 2.7?

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

Other com.google.code.gson:gson 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.