CVE-2026-41731
HIGH 8.1CVSS 3.1In Spring for Apache Kafka, overly broad trusted-package matching in header mappers exposes JDK classes to deserialization
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.
- Published
- 10 Jun 2026
- Last modified
- 5 Aug 2026
- Assigned by
- security@vmware.com
- NVD status
- Analyzed
- Weakness
- CWE-502
- Also known as
- GHSA-xq69-5h5v-x9x4
- Sources
- NVDJSONOSV GHSA-xq69-5h5v-x9x4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@vmware.com (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vmware | spring_for_apache_kafkacpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* |
>= 2.8.0, < 2.8.12 | 2.8.12 |
| NVD | vmware | spring_for_apache_kafkacpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* |
>= 2.9.0, < 2.9.14 | 2.9.14 |
| NVD | vmware | spring_for_apache_kafkacpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* |
>= 3.2.0, < 3.2.14 | 3.2.14 |
| NVD | vmware | spring_for_apache_kafkacpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* |
>= 3.3.0, < 3.3.15.1 | 3.3.15.1 |
| NVD | vmware | spring_for_apache_kafkacpe:2.3:a:vmware:spring_for_apache_kafka:*:*:*:*:*:*:*:* |
>= 4.0.0, < 4.0.5.1 | 4.0.5.1 |
| NVD | redhat | fusecpe:2.3:a:redhat:fuse:7.0.0:*:*:*:*:*:*:* |
= 7.0.0 | |
| NVD | redhat | jboss_enterprise_application_platform_expansion_packcpe:2.3:a:redhat:jboss_enterprise_application_platform_expansion_pack:-:*:*:*:*:*:*:* |
(no version) | |
| OSV | Maven | org.springframework.kafka:spring-kafka | >= 4.0.0, < 4.0.6 | 4.0.6 |
| OSV | Maven | org.springframework.kafka:spring-kafka | >= 3.3.0, < 3.3.16 | 3.3.16 |
| OSV | Maven | org.springframework.kafka:spring-kafka | >= 3.2.0, <= 3.2.13 | |
| OSV | Maven | org.springframework.kafka:spring-kafka | >= 2.9.0, <= 2.9.13 | |
| OSV | Maven | org.springframework.kafka:spring-kafka | <= 2.8.11 |
References
- https://spring.io/security/cve-2026-41731 · Vendor Advisory, WEB
- https://access.redhat.com/security/cve/CVE-2026-41731 · Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2487375 · Issue Tracking, Third Party Advisory
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41731.json · Third Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-41731 · ADVISORY
- https://github.com/spring-projects/spring-kafka · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 10 Jun 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 10 Jun 2026)