vetkit.java.deserialization.jackson-default-typing
Jackson polymorphic typing accepts arbitrary class names from JSON input (unsafe deserialization).
Last updated:
Suite: Security
java
Jackson polymorphic typing accepts arbitrary class names from JSON input (unsafe deserialization).
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Remove default typing and @JsonTypeInfo(use = Id.CLASS) on Object-typed members; use Id.NAME with registered subtypes, or activateDefaultTyping with a BasicPolymorphicTypeValidator allow-list.
References
Source: packages/engine/rules/sast/java.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.