CVE-2026-59401Spring for Apache Kafka Permissive List of Allowed Inputs
Spring
Vulnerability Summary
In Spring for Apache Kafka, trusted-package allowlist bypass via java.lang.Class header type allows arbitrary class initialization. JsonKafkaHeaderMapper and the deprecated DefaultKafkaHeaderMapper check the header type requested in the spring_json_header_types header against the mapper's trusted packages before deserializing a header value. Because java.lang is trusted by default, the type java.lang.Class passes this check. Deserializing a java.lang.Class header resolves the header value as a class name and loads that class, but the class named in the value is not subject to the trusted packages check. A malicious producer can use this to make the consumer load, and with some Jackson versions initialize, any class on the consumer's classpath, regardless of the trusted packages configuration. The impact depends on the side effects of the static initializers of the classes present on the classpath, such as resource allocation, driver registration, or blocking. An application is affected if it consumes records from a topic that an attacker can produce to and maps inbound headers with JsonKafkaHeaderMapper or DefaultKafkaHeaderMapper, which is the default when Jackson is on the classpath. Affected artifact: org.springframework.kafka:spring-kafka.
CVSS v3.1 Base Metrics — Score 3.1 (LOW)
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:LAttack VectorNetwork
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityLow
Affected & Patched Versions
- Spring for Apache Kafka 4.1.0 through 4.1.2
- Spring for Apache Kafka 4.0.0 through 4.0.8
- Spring for Apache Kafka 3.0.0 through 3.3.17
- Spring for Apache Kafka 2.9.0 through 2.9.15
- Spring for Apache Kafka through 2.8.13
- Spring for Apache Kafka 4.1.3 (open source)
- Spring for Apache Kafka 4.0.9 (open source)
- Spring for Apache Kafka 4.1.2.1 (commercial support only)
- Spring for Apache Kafka 4.0.8.1 (commercial support only)
- Spring for Apache Kafka 3.3.18 (commercial support only)
- Spring for Apache Kafka 2.9.16 (commercial support only)
- Spring for Apache Kafka 2.8.14 (commercial support only)
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run Spring for Apache Kafka and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 19, 2026Published
- Nov 19, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Spring for Apache Kafka CVEsYou are reading CVE-2026-59401. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Vendor Advisoryhttps://spring.io/security/cve-2026-59401
Data last checked: Nov 25, 2026 14:01 UTC