Intel

AIKIDO-2026-783453

spring-kafka is vulnerable to Server-Side Request Forgery (SSRF)

Server-Side Request Forgery (SSRF)CVE-2026-59278 Published Aug 21, 2026

65

Medium Risk

This Affects:

JAVAspring-kafka
0.0.1 - 4.0.6
Fixed in 4.0.7
4.1.0 - 4.1.0
Fixed in 4.1.1
Are you affected? Scan for Free

TL;DR

spring-kafka JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper include java.net in the default trusted packages. A producer can send a java.net.InetAddress type header that causes Jackson to call InetAddress.getByName() and trigger DNS resolution. That is SSRF in the default @KafkaListener configuration. The patch removes java.net from the default trusted packages.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and @KafkaListener consumers use the default JSON header mapper.

Background info

spring-kafka is vulnerable to Server-Side Request Forgery (SSRF) in versions 0.0.1 - 4.0.6 and 4.1.0 - 4.1.0.

How to fix this

Upgrade the org.springframework.kafka:spring-kafka library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform