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

- 種別: advisory
- 関連技術: spring, java
- CVE: CVE-2026-59401
- 公開日時: 2026-11-19T00:00:00.000Z
- 情報源: Spring Security Advisories (https://spring.io/security/cve-2026-59401)
- パーマリンク: https://vulnpulse.app/items/spring-security-d892547c956c

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…