CVE-2025-70974CWE-829

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…

Critical · published January 9, 2026

CVSS v3.1
10.0
EPSS
1%
Percentile
54.6
In the wild
Unconfirmed
What it is

🔥 A sneaky mishap in Fastjson could let attackers run wild through your Java classes! 📦 Think of Fastjson as a restaurant where the menu has items that can be customized. If a rogue diner orders a dish with a secret ingredient that the chef never checks, they could end up with a dangerous concoction — this vulnerability allows attackers to serve up malicious payloads via JSON that slip past normal checks! An attacker could exploit this flaw to call sensitive public methods in a Java application, potentially leading to JNDI injection. This could expose your application to remote code execution, allowing attackers to gain unauthorized access or manipulate sensitive data in absolutely devastating ways. 😱

Put simply

Think of Fastjson as a restaurant where the menu has items that can be customized. If a rogue diner orders a dish with a secret ingredient that the chef never checks, they could end up with a dangerous concoction — this vulnerability allows attackers to serve up malicious payloads via JSON that slip past normal checks! This vulnerability in Fastjson versions before 1.2.48 mishandles the @type key in JSON documents, enabling attackers to introduce harmful payloads that interact with Java classes in unexpected ways, thanks to an incomplete fix from previous vulnerabilities.

What to do

An attacker could exploit this flaw to call sensitive public methods in a Java application, potentially leading to JNDI injection. This could expose your application to remote code execution, allowing attackers to gain unauthorized access or manipulate sensitive data in absolutely devastating ways. 😱 Upgrade Fastjson to version 1.2.48 or higher immediately to patch this critical issue. Additionally, review and sanitize any incoming JSON data to ensure it doesn't include unintended class references. Don't forget to conduct a thorough security audit of your application! You’ve got this! With these steps, you’ll be one step closer to protecting your application from this vulnerability! 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00756 · 54.6th percentile
Weakness
CWE-829 · Inclusion of Functionality from Untrusted Control Sphere
Published
2026-01-09T06:43Z
EPSS history
Timeline
  • 09 JAN 06:43Z
    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…
    cvelistv5