{"document":{"category":"csaf_vex","csaf_version":"2.0","title":"CVE-2026-41731: In Spring for Apache Kafka, overly broad trusted-package matching in header mappers exposes JDK classes to deserialization","publisher":{"category":"vendor","name":"HarborGuard Database","namespace":"https://database.harborguard.co"},"tracking":{"id":"CVE-2026-41731","status":"final","version":"1","initial_release_date":"2026-06-09T23:49:26.535Z","current_release_date":"2026-06-10T17:18:19.967Z","revision_history":[{"date":"2026-06-09T23:49:26.535Z","number":"1","summary":"Initial machine-readable export from HarborGuard."}]},"distribution":{"tlp":{"label":"WHITE"},"text":"Public CVE data; freely redistributable."},"notes":[{"category":"description","text":"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.\n\nAffected versions:\nSpring 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.","title":"CVE description"}],"references":[{"category":"self","summary":"CVE-2026-41731 on HarborGuard Database","url":"https://database.harborguard.co/cve/CVE-2026-41731"},{"category":"external","summary":"CVE Record","url":"https://www.cve.org/CVERecord?id=CVE-2026-41731"},{"category":"external","summary":"spring.io","url":"https://spring.io/security/cve-2026-41731"}]},"product_tree":{"branches":[{"category":"vendor","name":"Spring","branches":[{"category":"product_name","name":"Spring for Apache Kafka","branches":[{"category":"product_version_range","name":">=4.0.0 <4.0.6","product":{"name":"Spring Spring for Apache Kafka >=4.0.0 <4.0.6","product_id":"CSAFPID-1","product_identification_helper":{"cpe":"cpe:2.3:a:spring:spring_for_apache_kafka:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=3.3.0 <3.3.16","product":{"name":"Spring Spring for Apache Kafka >=3.3.0 <3.3.16","product_id":"CSAFPID-2","product_identification_helper":{"cpe":"cpe:2.3:a:spring:spring_for_apache_kafka:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=3.2.0 <3.2.14","product":{"name":"Spring Spring for Apache Kafka >=3.2.0 <3.2.14","product_id":"CSAFPID-3","product_identification_helper":{"cpe":"cpe:2.3:a:spring:spring_for_apache_kafka:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=2.9.0 <2.9.14","product":{"name":"Spring Spring for Apache Kafka >=2.9.0 <2.9.14","product_id":"CSAFPID-4","product_identification_helper":{"cpe":"cpe:2.3:a:spring:spring_for_apache_kafka:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=2.8.0 <2.8.12","product":{"name":"Spring Spring for Apache Kafka >=2.8.0 <2.8.12","product_id":"CSAFPID-5","product_identification_helper":{"cpe":"cpe:2.3:a:spring:spring_for_apache_kafka:*:*:*:*:*:*:*:*"}}}]}]}]},"vulnerabilities":[{"cve":"CVE-2026-41731","title":"In Spring for Apache Kafka, overly broad trusted-package matching in header mappers exposes JDK classes to deserialization","notes":[{"category":"description","text":"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.\n\nAffected versions:\nSpring 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.","title":"CVE description"}],"product_status":{"known_affected":["CSAFPID-1","CSAFPID-2","CSAFPID-3","CSAFPID-4","CSAFPID-5"]},"scores":[{"cvss_v3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.1,"baseSeverity":"HIGH"},"products":["CSAFPID-1","CSAFPID-2","CSAFPID-3","CSAFPID-4","CSAFPID-5"]}],"remediations":[{"category":"vendor_fix","details":"Update to a fixed version: 2.8.12, 2.9.14, 3.2.14, 3.3.16, 4.0.6.","product_ids":["CSAFPID-1","CSAFPID-2","CSAFPID-3","CSAFPID-4","CSAFPID-5"]}]}]}