In Spring for Apache Pulsar, overly broad trusted-package matching in header mapper exposes JDK classes to deserialization
Spring for Apache Pulsar
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.springframework.pulsar:spring-pulsar Maven |
|
|
Original description
JsonPulsarHeaderMapper matched type headers against trusted packages using a prefix check, meaning that trusting any package implicitly trusted all of its subpackages. Additionally, an empty trusted-packages configuration fell back to trusting all packages rather than applying a safe default allow-list.