{"id":"CVE-2026-41731","aliases":["GHSA-xq69-5h5v-x9x4"],"url":"https://o3.security/vulnerability/CVE-2026-41731","summary":"In Spring for Apache Kafka, overly broad trusted-package matching in header mappers exposes JDK classes to deserialization","details":"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.","published":"2026-06-09T23:49:26.535Z","modified":"2026-08-12T03:51:26.152267323Z","cvss":{"score":8.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":{"score":0.0051,"percentile":0.40897,"asOf":"2026-08-12"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"org.springframework.kafka:spring-kafka","fixedVersion":"4.0.6"},{"ecosystem":"Maven","name":"org.springframework.kafka:spring-kafka","fixedVersion":"3.3.16"},{"ecosystem":"Maven","name":"org.springframework.kafka:spring-kafka","fixedVersion":null},{"ecosystem":"Maven","name":"org.springframework.kafka:spring-kafka","fixedVersion":null},{"ecosystem":"Maven","name":"org.springframework.kafka:spring-kafka","fixedVersion":null}],"fix":null,"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41731.json"},{"type":"WEB","url":"https://spring.io/security/cve-2026-41731"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-41731"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41731.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41731"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2487375"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:26.152267323Z"}}