Deserialization in Spring For Apache Kafka
CVE-2026-41731
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.
Vulnerability class: Insecure Deserialization
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.005 (43.5th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 44th percentile — 43.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.006 · newest: 0.005 · change: -0.001
Affected products
- Spring For Apache Kafka — versions 4.0.0, 3.3.0, 3.2.0
- VMware Spring For Apache Kafka
- Red Hat Fuse — versions 7.0.0
- Red Hat Jboss Enterprise Application Platform Expansion Pack
Weakness classification (CWE)
References
- spring.io/security/cve-2026-41731 (Vendor Advisory)
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Third Party Advisory)
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Third Party Advisory, Issue Tracking)
- 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Third Party Advisory)
Frequently asked questions
- What is CVE-2026-41731?
- CVE-2026-41731 is a high-severity vulnerability in Spring For Apache Kafka, classified under Deserialization of Untrusted Data. CVSS score: 8.1/10. Published 2026-06-10.
- How severe is CVE-2026-41731?
- High severity. CVSS v3 base score is 8.1 out of 10.