CVE-2026-41731
Description
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.
How to fix
- vmware spring_for_apache_kafka2.8.12, 2.9.14, 3.2.14, 3.3.15.1, 4.0.5.1 or later
- org.springframework.kafka:spring-kafka4.0.6, 3.3.16 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| vmware spring_for_apache_kafka | 2.8.0 ≤ v < 2.8.12, 2.9.0 ≤ v < 2.9.14, 3.2.0 ≤ v < 3.2.14, 3.3.0 ≤ v < 3.3.15.1, 4.0.0 ≤ v < 4.0.5.1 | 2.8.12, 2.9.14, 3.2.14, 3.3.15.1, 4.0.5.1 |
| redhat fuse | 7.0.0 | — |
| redhat jboss_enterprise_application_platform_expansion_pack | No range specified | — |
| org.springframework.kafka:spring-kafkaMaven | 4.0.0 ≤ v < 4.0.6, 3.3.0 ≤ v < 3.3.16, 3.2.0 ≤ v ≤ 3.2.13, 2.9.0 ≤ v ≤ 2.9.13, v ≤ 2.8.11 | 4.0.6, 3.3.16 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.