CVE Watchtower

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.
Severity Level
LOW(3.1)
Published Date
Nov 19, 2026
Last Modified
Nov 19, 2026
Exploitation Status
No confirmed exploitation yet
CVE Record Status
Reserved
This CVE ID is referenced in a public advisory, but the CVE Program has not published its official CVE Record yet. Full CVSS/CPE data from NVD will appear here once it does.
Root Weakness (CWE)
The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are explicitly allowed by policy because the inputs are assumed to be safe, but the list is too permissive - that is, it allows an input that is unsafe, leading to resultant weaknesses.
The product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code.
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:L
Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityLow

Affected & Patched Versions

Affected 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
Patched Versions
  • 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.

  1. Check whether you run Spring for Apache Kafka and which version.
  2. 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 alerts

External References

Data last checked: Nov 25, 2026 14:01 UTC