CodeQL library for Java
codeql/java-all 0.7.5 ( changelog , source )

Predicate hasArgumentWithUnsafeJacksonAnnotation

Holds if call is a method call to a Jackson deserialization method such as ObjectMapper.readValue(String, Class), and the target deserialized class has a field with a JsonTypeInfo annotation that enables polymorphic typing.

Import path

predicate hasArgumentWithUnsafeJacksonAnnotation ( MethodAccess call )