CVE-2026-41731
Published:June 09, 2026
Updated:June 11, 2026
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 Packages
https://github.com/spring-projects/spring-kafka.git (GITHUB):
Affected version(s) >=v1.0.0.M1 <v3.3.16Fix Suggestion:
Update to version v3.3.16https://github.com/spring-projects/spring-kafka.git (GITHUB):
Affected version(s) >=v4.0.0 <v4.0.6Fix Suggestion:
Update to version v4.0.6org.springframework.kafka:spring-kafka (JAVA):
Affected version(s) >=3.2.0 <3.2.14Fix Suggestion:
Update to version 3.2.14org.springframework.kafka:spring-kafka (JAVA):
Affected version(s) >=2.8.0 <2.8.12Fix Suggestion:
Update to version 2.8.12org.springframework.kafka:spring-kafka (JAVA):
Affected version(s) >=2.9.0 <2.9.14Fix Suggestion:
Update to version 2.9.14org.springframework.kafka:spring-kafka (JAVA):
Affected version(s) >=3.3.0 <3.3.16Fix Suggestion:
Update to version 3.3.16org.springframework.kafka:spring-kafka (JAVA):
Affected version(s) >=4.0.0 <4.0.6Fix Suggestion:
Update to version 4.0.6Related Resources (1)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.2
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.1
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Deserialization of Untrusted Data
EPSS
Base Score:
0.04