In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade org.springframework.kafka:spring-kafka to version 4.0.9, 4.1.3 or higher.
Affected versions of this package are vulnerable to Permissive List of Allowed Inputs in the DefaultKafkaHeaderMapper and JsonKafkaHeaderMapper classes, which deserialize a header whose spring_json_header_types type is java.lang.Class because the java.lang package is trusted by default. An attacker who can produce to a consumed topic can cause the application to load and initialize an arbitrary class named in the header value, which is not itself subject to the trusted-packages check, triggering that class's static initializer. This requires the application to map inbound Kafka headers with one of these mappers (DefaultKafkaHeaderMapper is the default when Jackson is present).