Is com.google.code.gson:gson 2.8 vulnerable?
Maven · 10 releases from 2.8.0 to 2.8.9 · latest com.google.code.gson:gson is 2.15.0 · checked 18 Nov 2026
No known advisories in the last release
com.google.code.gson:gson 2.8.9, the last 2.8 release, has no known advisories. 1 advisory affects earlier 2.8.x releases, so update to 2.8.9.
mvn versions:use-dep-version -Dincludes=com.google.code.gson:gson -DdepVersion=2.8.9 -DforceVersion=trueIs your project on an affected com.google.code.gson:gson?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Fixed within 2.8.x, affecting earlier releases
Deserialization of Untrusted Data in Gson
- Affected
- <2.8.9
- Fixed in
- 2.8.9
Every com.google.code.gson:gson 2.8.x release
Affected: 2.8.0 to 2.8.8. 2.8.9 is not affected. Latest com.google.code.gson:gson: 2.15.0.
| Version | Known advisories |
|---|---|
| com.google.code.gson:gson 2.8.9 | None |
| com.google.code.gson:gson 2.8.8 | CVE-2022-25647 |
| com.google.code.gson:gson 2.8.7 | CVE-2022-25647 |
| com.google.code.gson:gson 2.8.6 | CVE-2022-25647 |
| com.google.code.gson:gson 2.8.5 | CVE-2022-25647 |
| com.google.code.gson:gson 2.8.4 | CVE-2022-25647 |
| com.google.code.gson:gson 2.8.3 | CVE-2022-25647 |
| com.google.code.gson:gson 2.8.2 | CVE-2022-25647 |
| com.google.code.gson:gson 2.8.1 | CVE-2022-25647 |
| com.google.code.gson:gson 2.8.0 | CVE-2022-25647 |
Which of your client projects are still on com.google.code.gson:gson 2.8?
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
- com.google.code.gson:gson 2.11
- com.google.code.gson:gson 2.10
- com.google.code.gson:gson 2.9
- com.google.code.gson:gson 2.7
- com.google.code.gson:gson 2.6
- com.google.code.gson:gson 2.5
- com.google.code.gson:gson 2.15
- com.google.code.gson:gson 2.14
- com.google.code.gson:gson 2.13
- com.google.code.gson:gson 2.12
- com.google.code.gson:gson 1.7
- com.google.code.gson:gson 1.6
- All com.google.code.gson:gson advisories
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.