CriticalGHSA-jm7w-5684-pvh8CVE-2025-70974

FASTJSON Includes Functionality from Untrusted Control Sphere

Published 9 Jan 2026 · Updated 5 Oct 2026

Is your project on an affected com.alibaba:fastjson?

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

Affected package

Affected
<1.2.48
Fixed in
1.2.48
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=com.alibaba:fastjson -DdepVersion=1.2.48 -DforceVersion=true

Details

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
com.alibaba:fastjson security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.