Permissive List of Allowed Inputs Affecting org.springframework.kafka:spring-kafka package, versions [,4.0.9)[4.1.0-M1,4.1.3)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

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 applications
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKKAFKA-22729369
  • published22 Nov 2026
  • disclosed19 Nov 2026
  • creditUnknown

Introduced: 19 Nov 2026

NewCVE-2026-59401  (opens in a new tab)
CWE-183  (opens in a new tab)

How to fix?

Upgrade org.springframework.kafka:spring-kafka to version 4.0.9, 4.1.3 or higher.

Overview

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

CVSS Base Scores

version 4.0
version 3.1