CVE-2026-41731: In Spring for Apache Kafka, overly broad trusted-package matching in header mappers exposes JDK classes to deserialization

Published Jun 9, 2026
·
Updated

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.

Affected Software

8 affected components
maven/org.springframework.kafka/spring-kafka>=4.0.0<=4.0.5, >=3.3.0<=3.3.15, >=3.2.0<=3.2.13, >=2.9.0<=2.9.13, >=2.8.0<=2.8.11
VMware Spring For Apache Kafka>=2.8.0<2.8.12
VMware Spring For Apache Kafka>=2.9.0<2.9.14
VMware Spring For Apache Kafka>=3.2.0<3.2.14
VMware Spring For Apache Kafka>=3.3.0<3.3.15.1
VMware Spring For Apache Kafka>=4.0.0<4.0.5.1
redhat Fuse=7.0.0
redhat Jboss Enterprise Application Platform Expansion Pack

Event History

Jun 9, 2026
CVE Published
via MITRE·11:49 PM
Data Sourced
via MITRE·11:49 PM
DescriptionSeverityWeakness
Jun 10, 2026
Data Sourced
via Red Hat·12:01 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·12:16 AM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-41731?

The severity of CVE-2026-41731 is rated high with a score of 8.1.

2

What does CVE-2026-41731 involve?

CVE-2026-41731 involves overly broad trusted-package matching in header mappers in Spring for Apache Kafka, which can expose JDK classes to deserialization attacks.

3

How can I mitigate the risks associated with CVE-2026-41731?

To mitigate CVE-2026-41731, update to the latest version of Spring for Apache Kafka that addresses this vulnerability.

4

What impact does CVE-2026-41731 have on application security?

CVE-2026-41731 can lead to deserialization of untrusted data, potentially allowing an attacker to execute arbitrary code.

5

Which versions of Spring for Apache Kafka are affected by CVE-2026-41731?

CVE-2026-41731 affects versions of Spring for Apache Kafka that utilize the JsonKafkaHeaderMapper and deprecated DefaultKafkaHeaderMapper.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203