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)
| Artifact | Affected versions | Fixed 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
68% of the dependent artifacts (999) still pull an affected version in their latest release.
| Depth | Dependent 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
- org.springframework.cloud » spring-cloud-starter-stream-kafka280 usages
- org.springframework.cloud » spring-cloud-stream-binder-kafka174 usages
- org.springframework.integration » spring-integration-kafka152 usages
- ch.admin.bit.jeap » jeap-messaging-infrastructure-kafka98 usages
- org.springframework.boot » spring-boot-starter-kafka86 usages
- org.springframework.boot » spring-boot-kafka53 usages
- org.fireflyframework » fireflyframework-starter-core45 usages
- org.fireflyframework » fireflyframework-starter-domain43 usages
- org.springframework.cloud » spring-cloud-starter-bus-kafka41 usages
- ch.admin.bit.jeap » jeap-messaging-infrastructure-kafka-test27 usages
- com.rarible.core » rarible-core-test-common25 usages
- org.qubership.mockingbird » mockingbird-camel-common22 usages
- org.fireflyframework » fireflyframework-eda20 usages
- com.icthh.xm.commons » xm-commons-config18 usages
- org.folio » folio-backend-testing18 usages
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
| Advisory | CVE record CVE-2026-59278 | github.com |
| Advisory | NVD CVE-2026-59278 | nvd.nist.gov |
| Web | security/cve-2026-59278 | spring.io |
