MODERATE 6.5

CVE-2026-59278

In Spring for Apache Kafka, SSRF via DNS resolution triggered by untrusted java.net types in header mapper default trusted packages

Description

JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper include java.net in their default trusted packages list. When these mappers are used — which is the default configuration for all @KafkaListener consumers — an external Kafka producer can inject a java.net.InetAddress type via the spring_json_header_types message header. Spring for Apache Kafka 4.1.0 Spring for Apache Kafka 4.0.0 - 4.0.6 Spring for Apache Kafka 3.0.0 - 3.3.16 Spring for Apache Kafka 2.9.0 - 2.9.14 Spring for Apache Kafka 2.8.12 and earlier

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.kafka » spring-kafka
<= 2.8.12>= 2.9.0, <= 2.9.14>= 3.0.0, <= 3.3.16>= 4.0.0, <= 4.0.6= 4.1.0
-

Blast radius

1affected artifacts
286affected versions
1,452dependent artifacts (est.)
29,385dependent versions

68% of the dependent artifacts (999) still pull an affected version in their latest release.

DepthDependent versions
Direct
11,691
2 hops
9,216
3 hops
3,955
4 hops
2,925
5 hops
1,338
6 hops
260

Most used dependents

Computed from the dependency graph of build 20261128.0605 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References

Advisorygithub.com
Advisorynvd.nist.gov
Webspring.io