If you use @JsonSubTypes you almost certainly are NOT affected: it is used with type names (arbitrary Strings), as the safe alternative to class names. Vulnerability is only possible of class names are used as type ids.

I hope this helps.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store