FASTJSON Includes Functionality from Untrusted Control Sphere
Published 9 Jan 2026 · Updated 5 Oct 2026
Is your project on an affected com.alibaba:fastjson?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <1.2.48
- Fixed in
- 1.2.48
mvn versions:use-dep-version -Dincludes=com.alibaba:fastjson -DdepVersion=1.2.48 -DforceVersion=trueDetails
Fastjson before 1.2.48 mishandles autoType because, when an @type key is in a JSON document, and the value of that key is the name of a Java class, there may be calls to certain public methods of that class. Depending on the behavior of those methods, there may be JNDI injection with an attacker-supplied payload located elsewhere in that JSON document. This was exploited in the wild in 2023 through 2025. NOTE: this issue exists because of an incomplete fix for CVE-2017-18349. Also, a later bypass is covered by CVE-2022-25845.
Is GHSA-jm7w-5684-pvh8 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected com.alibaba:fastjson, and gives you the command that fixes it.
More advisories for com.alibaba:fastjson
- CriticalCVE-2026-16723fastjson has a remote code execution (RCE) vulnerability · 23 Jul 2026
- HighCVE-2022-25845Unsafe deserialization in com.alibaba:fastjson · 11 Jun 2022
- CriticalCVE-2017-18349Improper Input Validation in alilibaba:fastjson · 24 Oct 2018
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2025-70974
- Linkaccess.redhat.com/security/cve/CVE-2025-70974
- Linkbugzilla.redhat.com/show_bug.cgi?id=2428203
- Packagegithub.com/alibaba/fastjson
- Linkgithub.com/alibaba/fastjson/compare/1.2.47...1.2.48
- Linkgithub.com/vulhub/vulhub/tree/master/fastjson/1.2.47-rce
- Linkweb.archive.org/web/20220121055754/https://cert.360.cn/warning/detail?id=7240aeab581c6dc2c9c5350756079955
- Linkwww.cloudsek.com/blog/androxgh0st-continues-exploitation-operators-compromise-a-us-university-for-hosting-c2-logger
- Linkwww.cnvd.org.cn/flaw/show/CNVD-2019-22238
- Linkwww.freebuf.com/vuls/208339.html
- Linkwww.seebug.org/vuldb/ssvid-98020
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.