Description
JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper include java.net in their default trusted packages list. When these mappers are used — which is the default configuration for all @KafkaListener consumers — an external Kafka producer can inject a java.net.InetAddress type via the spring_json_header_types message header.
Spring for Apache Kafka 4.1.0
Spring for Apache Kafka 4.0.0 - 4.0.6
Spring for Apache Kafka 3.0.0 - 3.3.16
Spring for Apache Kafka 2.9.0 - 2.9.14
Spring for Apache Kafka 2.8.12 and earlier
Published: 2026-08-27
Score: 6.5 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper include java.net classes in their default trusted packages. When a Kafka consumer on a Spring application receives a message with a spring_json_header_types header that contains an java.net.InetAddress type, the framework unmarshals it without proper validation. This allows an external producer to cause the broker to resolve a DNS address controlled by the attacker, creating a Server‑Side Request Forgery (SSRF) that can reach internal services or exfiltrate data.

Affected Systems

The discovery applies to Spring for Apache Kafka releases 4.1.0, 4.0.0 through 4.0.6, 3.0.0 through 3.3.16, 2.9.0 through 2.9.14, and all 2.8.12 and earlier versions.

Risk and Exploitability

The CVSS score of 6.5 indicates moderate severity. EPSS is not available, and the vulnerability is not listed in the CISA KEV catalog. The most likely attack vector is an attacker sending a crafted Kafka message to a consumer that uses the default header mapper. The attacker does not need elevated privileges within the application; the exploitation simply triggers DNS resolution from the Kafka broker or the Spring container, potentially exposing internal resources or enabling data exfiltration.

Generated by OpenCVE AI on August 27, 2026 at 08:11 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to the latest available release of Spring for Apache Kafka that removes java.net from the default trusted packages list.
  • If an upgrade cannot be performed immediately, reconfigure the header mapper to exclude java.net from the trusted packages list and whitelist only the types required for the application.
  • Restrict outbound DNS queries from the Kafka broker and the Spring application to approved DNS servers to limit the impact of any residual SSRF attempts.

Generated by OpenCVE AI on August 27, 2026 at 08:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

Thu, 27 Aug 2026 08:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-918

Thu, 27 Aug 2026 08:00:00 +0000

Type Values Removed Values Added
First Time appeared Spring
Spring spring For Apache Kafka
Vendors & Products Spring
Spring spring For Apache Kafka

Thu, 27 Aug 2026 06:15:00 +0000

Type Values Removed Values Added
Description JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper include java.net in their default trusted packages list. When these mappers are used — which is the default configuration for all @KafkaListener consumers — an external Kafka producer can inject a java.net.InetAddress type via the spring_json_header_types message header. Spring for Apache Kafka 4.1.0 Spring for Apache Kafka 4.0.0 - 4.0.6 Spring for Apache Kafka 3.0.0 - 3.3.16 Spring for Apache Kafka 2.9.0 - 2.9.14 Spring for Apache Kafka 2.8.12 and earlier
Title In Spring for Apache Kafka, SSRF via DNS resolution triggered by untrusted java.net types in header mapper default trusted packages
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}


Subscriptions

Spring Spring For Apache Kafka
cve-icon MITRE

Status: PUBLISHED

Assigner: vmware

Published:

Updated: 2026-08-27T05:21:43.988Z

Reserved: 2026-07-04T18:13:09.973Z

Link: CVE-2026-59278

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-27T06:17:22.403

Modified: 2026-08-27T06:17:22.403

Link: CVE-2026-59278

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-27T08:15:05Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)