JsonKafkaHeaderMapper and the deprecated DefaultKafkaHeaderMapper matched type headers against trusted packages using a prefix check, meaning that trusting any package implicitly trusted all of its subpackages. Combined with Jackson's default bean deserialization, a producer could supply crafted header values that caused the consumer to deserialize arbitrary JDK types. Affected versions: Spring for Apache Kafka 4.0.0 through 4.0.5; 3.3.0 through 3.3.15; 3.2.0 through 3.2.13; 2.9.0 through 2.9.13; 2.8.0 through 2.8.11.
Update org.springframework.kafka:spring-kafka to 4.0.6; org.springframework.kafka:spring-kafka to 3.3.16 if you use the affected versions. Test the change in a non-production environment first.
Local check
hol-guard supply-chain scanIn Spring for Apache Kafka, overly broad trusted-package matching in header mappers exposes JDK classes to deserialization affects org.springframework.kafka:spring-kafka (maven), org.springframework.kafka:spring-kafka (maven), org.springframework.kafka:spring-kafka (maven), org.springframework.kafka:spring-kafka (maven), org.springframework.kafka:spring-kafka (maven). Severity is high. JsonKafkaHeaderMapper and the deprecated DefaultKafkaHeaderMapper matched type headers against trusted packages using a prefix check, meaning that trusting any package implicitly trusted all of its subpackages. Combined with Jackson's default bean deserialization, a producer could supply crafted header values that caused the consumer to deserialize arbitrary JDK types. Affected versions: Spring for Apache Kafka 4.0.0 through 4.0.5; 3.3.0 through 3.3.15; 3.2.0 through 3.2.13; 2.9.0 through 2.9.13; 2.8.0 through 2.8.11.
AI coding agents often install or upgrade packages automatically in maven. A high vulnerability in a dependency can be pulled into a project through a normal install or update without a human reviewing the change, expanding the blast radius from a single package to every agent workspace that depends on it.
| Package | Affected range |
|---|
JsonKafkaHeaderMapper and the deprecated DefaultKafkaHeaderMapper matched type headers against trusted packages using a prefix check, meaning that trusting any package implicitly trusted all of its subpackages. Combined with Jackson's default bean deserialization, a producer could supply crafted header values that caused the consumer to deserialize arbitrary JDK types. Affected versions: Spring for Apache Kafka 4.0.0 through 4.0.5; 3.3.0 through 3.3.15; 3.2.0 through 3.2.13; 2.9.0 through 2.9.13; 2.8.0 through 2.8.11.
Update org.springframework.kafka:spring-kafka to 4.0.6; org.springframework.kafka:spring-kafka to 3.3.16 if you use the affected versions. Test the change in a non-production environment first.
Local check
hol-guard supply-chain scanIn Spring for Apache Kafka, overly broad trusted-package matching in header mappers exposes JDK classes to deserialization affects org.springframework.kafka:spring-kafka (maven), org.springframework.kafka:spring-kafka (maven), org.springframework.kafka:spring-kafka (maven), org.springframework.kafka:spring-kafka (maven), org.springframework.kafka:spring-kafka (maven). Severity is high. JsonKafkaHeaderMapper and the deprecated DefaultKafkaHeaderMapper matched type headers against trusted packages using a prefix check, meaning that trusting any package implicitly trusted all of its subpackages. Combined with Jackson's default bean deserialization, a producer could supply crafted header values that caused the consumer to deserialize arbitrary JDK types. Affected versions: Spring for Apache Kafka 4.0.0 through 4.0.5; 3.3.0 through 3.3.15; 3.2.0 through 3.2.13; 2.9.0 through 2.9.13; 2.8.0 through 2.8.11.
AI coding agents often install or upgrade packages automatically in maven. A high vulnerability in a dependency can be pulled into a project through a normal install or update without a human reviewing the change, expanding the blast radius from a single package to every agent workspace that depends on it.
| Package | Affected range |
|---|
| Fixed version |
|---|
| org.springframework.kafka:spring-kafkamaven | >=4.0.0,<=4.0.5 | 4.0.6 |
|---|---|---|
| org.springframework.kafka:spring-kafkamaven | >=3.3.0,<=3.3.15 | 3.3.16 |
| org.springframework.kafka:spring-kafkamaven | >=3.2.0,<=3.2.13 | Not reported |
| org.springframework.kafka:spring-kafkamaven | >=2.9.0,<=2.9.13 | Not reported |
| org.springframework.kafka:spring-kafkamaven | <=2.8.11 | Not reported |
Fixed versions are reported by the source feed; confirm compatibility before updating.
Reported by GitHub Security Advisories (ghsa).
HOL Guard can help your team review package activity against supported protection paths.
Explore HOL Guard| Fixed version |
|---|
| org.springframework.kafka:spring-kafkamaven | >=4.0.0,<=4.0.5 | 4.0.6 |
|---|---|---|
| org.springframework.kafka:spring-kafkamaven | >=3.3.0,<=3.3.15 | 3.3.16 |
| org.springframework.kafka:spring-kafkamaven | >=3.2.0,<=3.2.13 | Not reported |
| org.springframework.kafka:spring-kafkamaven | >=2.9.0,<=2.9.13 | Not reported |
| org.springframework.kafka:spring-kafkamaven | <=2.8.11 | Not reported |
Fixed versions are reported by the source feed; confirm compatibility before updating.
Reported by GitHub Security Advisories (ghsa).
HOL Guard can help your team review package activity against supported protection paths.
Explore HOL Guard