CVE-2026-59401: Trusted-package allowlist bypass in Spring for Apache Kafka header mapping
Spring for Apache Kafka's JsonKafkaHeaderMapper and deprecated DefaultKafkaHeaderMapper contain a trusted-package allowlist bypass involving headers typed as java.lang.Class. The header type passes the trust check, but the class named in the header value is not checked against the configured trusted packages. A malicious producer can consequently cause a consuming application to load arbitrary classes available on its classpath and, with some Jackson versions, initialize them.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Exploitation bypasses the configured trusted-package boundary and permits class loading and potentially static initialization of classes outside the allowlist. Effects depend on the classes available on the consumer's classpath and their static initializers, potentially including resource allocation, driver registration, or blocking. The vulnerability is rated low severity, with potential low availability impact; arbitrary code execution is not established.
Mitigation
If you can’t patch tonight, do this now.
No temporary workaround is specified. Applications that need to convey a class in a header should send its name as a String and resolve it in the consuming application only against explicitly expected classes. This application-level guidance does not replace upgrading the vulnerable header mapper.
Remediation
Patch, then assume compromise.
Upgrade to the corresponding fixed release: 4.1.3 or enterprise-only 4.1.2.1; 4.0.9 or enterprise-only 4.0.8.1; enterprise-only 3.3.18; enterprise-only 2.9.16; or enterprise-only 2.8.14. Fixed releases never trust java.lang.Class, even when java.lang or the wildcard * is trusted, and return headers of this type, including arrays, as NonTrustedHeaderType.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-59401 exploited in the wild?
- As of Nov 25, 2026, Mallory has no reports of CVE-2026-59401 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-59401?
- As of Nov 25, 2026, Mallory has found no public exploit for CVE-2026-59401.
- Is there a patch for CVE-2026-59401?
- Upgrade to the corresponding fixed release: 4.1.3 or enterprise-only 4.1.2.1; 4.0.9 or enterprise-only 4.0.8.1; enterprise-only 3.3.18; enterprise-only 2.9.16; or enterprise-only 2.8.14. Fixed releases never trust java.lang.Class, even when java.lang or the wildcard * is trusted, and return headers of this type, including arrays, as NonTrustedHeaderType.
Recent activity
1 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.