Deserialization of Untrusted Data in Spring for Apache Kafka - CVE-2026-41731
Published: August 31, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause resource exhaustion and other side effects by triggering deserialization of arbitrary JDK types.
The vulnerability exists due to improper control of deserialization in JsonKafkaHeaderMapper and the deprecated DefaultKafkaHeaderMapper when processing type headers against trusted packages. A remote attacker can supply crafted header values to cause resource exhaustion and other side effects by triggering deserialization of arbitrary JDK types.
The issue stems from trusted-package matching that used a prefix check, so trusting a package also trusted its subpackages.