CVE-2026-59399Spring for Apache Kafka Improper Input Validation
Spring
Vulnerability Summary
In Spring for Apache Kafka, DelegatingDeserializer allows header-driven arbitrary class loading and deserializer selection. DelegatingDeserializer selects the delegate deserializer for each record from the spring.kafka.serialization.selector (value) or spring.kafka.key.serialization.selector (key) header. When the selector matched no configured delegate, it loaded the class named in the header, without any restriction, and, for a type supported by Kafka's Serdes (such as String or Long), deserialized the record with the corresponding standard deserializer. Since the producer sets the header, a malicious producer can choose how records are deserialized, regardless of the configured delegates, so that listeners receive data of an unexpected type, and can make the consumer load any class on its classpath. Combined with the selection of the configured delegates by the same header, this can let an attacker apply a delegate to data it was not intended for. An application is affected if it consumes records from a topic that an attacker can produce to and uses DelegatingDeserializer as the key or value deserializer. Affected artifact: org.springframework.kafka:spring-kafka.
CVSS v3.1 Base Metrics — Score 6.8 (MEDIUM)
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:NAttack VectorNetwork
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityNone
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-59399. 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-59399
Data last checked: Nov 24, 2026 14:01 UTC