Deserialization of Untrusted Data in Spring for Apache Kafka - CVE-2026-59278

 

Deserialization of Untrusted Data in Spring for Apache Kafka - CVE-2026-59278

Published: August 28, 2026


Vulnerability identifier: #VU146204
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-59278
CWE-ID: CWE-502
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform server-side request forgery via DNS resolution.

The vulnerability exists due to unsafe deserialization of untrusted java.net types in JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper when processing the spring_json_header_types message header. A remote attacker can send a specially crafted Kafka message header to perform server-side request forgery via DNS resolution.

The issue occurs in the default configuration for all @KafkaListener consumers.


Affected software

Spring for Apache Kafka
Library Support for Spring

How to mitigate CVE-2026-59278

Install security update from vendor's website.

Spring for Apache Kafka - addressed in versions 2.8.13, 2.9.15, 3.3.17, 4.0.6.1, 4.0.7, 4.1.0.1, 4.1.1
Library Support for Spring - update to 3.5.19

External References

Related Security Bulletins