Unsafe Dependency Resolution Affecting com.alibaba:fastjson package, versions [,1.2.48)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Attacked
EPSS
0.03% (10th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-COMALIBABA-14908847
  • published9 Jan 2026
  • disclosed9 Jan 2026
  • creditUnknown

Introduced: 9 Jan 2026

CVE-2025-70974  (opens in a new tab)
CWE-829  (opens in a new tab)

How to fix?

Upgrade com.alibaba:fastjson to version 1.2.48 or higher.

Overview

com.alibaba:fastjson is a fast JSON parser/generator for Java.

Affected versions of this package are vulnerable to Unsafe Dependency Resolution due to the unsafe implementation of the checkAutoType() function. An attacker can execute arbitrary code by supplying a crafted JSON document containing an @type key with the name of a Java class, which may trigger calls to public methods of that class with attacker-controlled data.

Note: This issue exists because of an incomplete fix for CVE-2017-18349 and its later bypass CVE-2022-25845.

CVSS Base Scores

version 4.0
version 3.1