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

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-06-09 · Modified: 2026-08-05
- Aliases: GHSA-xq69-5h5v-x9x4
- Record: https://cvemate.com/vulnerability/CVE-2026-41731 · JSON: https://cvemate.com/vulnerability/CVE-2026-41731/json

## 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.

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.
```

## Signals

- CVSS: 8.1 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.51%, percentile 45.025%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- org.springframework.kafka spring-kafka (Maven): ≥ 4.0.0, \< 4.0.6 \| ≥ 3.3.0, \< 3.3.16 \| ≥ 3.2.0, ≤ 3.2.13 \| ≥ 2.9.0, ≤ 2.9.13 \| ≤ 2.8.11
- redhat fuse: 7.0.0
- redhat jboss\_enterprise\_application\_platform\_expansion\_pack: na
- spring spring for apache kafka: ≥ 4.0.0, \< 4.0.5.1 \| ≥ 3.3.0, \< 3.3.15.1 \| ≥ 3.2.0, \< 3.2.14 \| ≥ 2.9.0, \< 2.9.14 \| ≥ 2.8.0, \< 2.8.12
- vmware spring\_for\_apache\_kafka: ≥ 2.8.0, \< 2.8.12 \| ≥ 2.9.0, \< 2.9.14 \| ≥ 3.2.0, \< 3.2.14 \| ≥ 3.3.0, \< 3.3.15.1 \| ≥ 4.0.0, \< 4.0.5.1

## References

- <https://spring.io/security/cve-2026-41731>
- <https://access.redhat.com/security/cve/CVE-2026-41731>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2487375>
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41731.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41731>
- <https://github.com/spring-projects/spring-kafka>

---

Data as of 2026-12-05T04:21:39.824Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
