Unsafe reflection in Spring for Apache Kafka - CVE-2026-59401
Published: November 20, 2026
Vulnerability details
The vulnerability allows a remote user to bypass the trusted-package allowlist and potentially disrupt Kafka consumer operation.
The vulnerability exists due to insufficient validation of externally controlled class names in JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper when deserializing inbound Kafka record headers. A remote user can publish records to a topic read by the consumer to trigger loading of a class from the consumer's classpath and, with some Jackson versions, trigger static initialization that can consume resources or block processing.