Skip to content

Spring for Apache Kafka

In Spring for Apache Kafka, trusted-package allowlist bypass via java.lang.Class header type allows arbitrary class initialization

CVE-2026-59401Published 2 Dec 2026, 07:11 UTC

Real-world risk

0.7/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

3.1

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from vmware)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
Spring for Apache KafkaNiche>= 4.1.0, < 4.1.2.1; >= 4.0.0, < 4.0.8.1; >= 3.0.0, < 3.3.18; >= 2.9.0, < 2.9.16; < 2.8.14; >= 4.1.0, < 4.1.3; >= 4.0.0, < 4.0.94.1.2.1, 4.0.8.1, 3.3.18, 2.9.16, 2.8.14, 4.1.3, 4.0.9

What to do

Update to a fixed version: 4.1.2.1, 4.0.8.1, 3.3.18, 2.9.16, 2.8.14, 4.1.3, 4.0.9.

Why this score

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededLowA real low-privileged accountFrom the CVSS vector0.60
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.4% chance of exploitation in 30 days (percentile 39), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.270
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.3 × prerequisites 0.27 × threat 0.850.689
  4. Rounded to one decimal between 0.1 and 100.7

How the score works

Exploitation and evidence timeline

  1. 2 Dec 2026 Published
  2. 2 Dec 2026 Risk 0.7 (cvss fallback)

Weakness

No weakness type given.

References

Get alerts for Spring for Apache Kafka

Free email or text alerts when a vulnerability in Spring for Apache Kafka reaches risk 8 or higher. Nothing else.