Quick answers
- Is CVE-2026-41731 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-41731 being exploited in the wild.
- How severe is CVE-2026-41731?
- High severity, with a CVSS score of 8.1, published 10 June 2026.
- Which products and versions are affected?
- org.springframework.kafka:spring-kafka (Maven) ECOSYSTEM:introduced=4.0.0,fixed=4.0.6; VMware 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.
- Is there a fix for CVE-2026-41731?
- Yes. org.springframework.kafka:spring-kafka (Maven): upgrade to 4.0.6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-41731 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-41731?
- Check whether you run org.springframework.kafka:spring-kafka (Maven) or VMware Spring for Apache Kafka at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- org.springframework.kafka:spring-kafka (Maven): upgrade to 4.0.6 or later
# set org.springframework.kafka:spring-kafka to 4.0.6 in your pom.xml or build.gradle
Technical details
A deserialization vulnerability exists in Spring for Apache Kafka's JsonKafkaHeaderMapper and the deprecated DefaultKafkaHeaderMapper. The root cause is a prefix-based check for trusted packages in header mappers, which inadvertently trusts all subpackages if a parent package is trusted. When combined with Jackson's default bean deserialization, a remote attacker can provide crafted header values in a Kafka message to trigger the deserialization of arbitrary JDK types. This can lead to remote code execution (RCE) depending on the available gadgets on the classpath. Users should upgrade to versions 4.0.6, 3.3.16, or later.
Affected products
- Spring spring-kafka 4.0.0 to 4.0.5, 3.3.0 to 3.3.15, 3.2.0 to 3.2.13, 2.9.0 to 2.9.13, <= 2.8.11
Identifiers
- CVE-2026-41731
- GHSA-xq69-5h5v-x9x4
Timeline
- 2026-06-10: advisory: Initial advisory published
- 2026-06-12: other: Advisory updated and reviewed