Skip to main content
CVE-2026-59401VulnerabilityPublished

JsonKafkaHeaderMapper and the deprecated DefaultKafkaHeaderMapper check the header type requested in the

Source GCVE Database

0
Compare
Authoritative record:CVE-2026-59401· Low 3.1

Not known to be exploited · CVSS 3.1 Low · fixed in 4.1.3 : update Spring for Apache Kafka when convenient.

Data as of 2 Dec 2026, 10:19 UTC

CVSS 3.1 base score
3.1Low
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (vmware)CVSS 3.13.1
Patch
Available – fixed in 4.1.3, 4.1.2.1, 4.0.9 +4
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Dec 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
SpringSpring for Apache KafkaAffected
  • >=4.1.0 <4.1.3
Fixed in
  • 4.1.3
SpringSpring for Apache KafkaAffected
  • >=4.1.0 <4.1.2.1
Fixed in
  • 4.1.2.1
SpringSpring for Apache KafkaAffected
  • >=4.0.0 <4.0.9
Fixed in
  • 4.0.9
SpringSpring for Apache KafkaAffected
  • >=4.0.0 <4.0.8.1
Fixed in
  • 4.0.8.1
SpringSpring for Apache KafkaAffected
  • >=3.0.0 <3.3.18
Fixed in
  • 3.3.18
SpringSpring for Apache KafkaAffected
  • >=2.9.0 <2.9.16
Fixed in
  • 2.9.16

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Users should avoid consuming records from untrusted topics using JsonKafkaHeaderMapper or DefaultKafkaHeaderMapper for header deserialization. Restrict producer access to Kafka topics to trusted entities only. Monitor vendor advisories for any forthcoming patches or official remediation guidance.

Description

JsonKafkaHeaderMapper and the deprecated DefaultKafkaHeaderMapper in Spring Kafka check the header type requested in the spring_json_header_types header against trusted packages before deserializing. Because java.lang is trusted by default, the type java.lang.Class passes this check, allowing deserialization of a java.lang.Class header that loads a class named in the header value without applying the trusted packages check to that class name. This can enable a malicious producer to cause the consumer to load and potentially initialize any class on its classpath, leading to side effects from static initializers such as resource allocation or driver registration. The vulnerability affects applications that consume records from topics an attacker can produce to and use these mappers for header deserialization.

References

Community reviews

Loading reviews…