← Java / Spring · Contents

JAVA-029 / Advanced

Missing Jackson deserialization gadget protection (older versions)

A06:2021 Vulnerable and Outdated Components · CWE-502 Deserialization of Untrusted Data

Why is this a problem?

Blacklist-based blocking can be bypassed, and gadgets have been added across several jackson-databind releases.

How to fix it

xml
<!-- Inherit the current Jackson version from the Spring Boot BOM and verify with mvn dependency:tree -->

Further reading