We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a89c3f commit cf7aa2eCopy full SHA for cf7aa2e
java/ql/lib/semmle/code/java/security/UnsafeDeserializationQuery.qll
@@ -534,6 +534,12 @@ deprecated class SafeObjectMapperConfig extends DataFlow2::Configuration {
534
}
535
536
537
+/**
538
+ * Tracks flow from calls that set a type validator to a subsequent Jackson deserialization method call,
539
+ * including across builder method calls.
540
+ *
541
+ * Such a Jackson deserialization method call is safe because validation will likely prevent instantiating unexpected types.
542
+ */
543
module SafeObjectMapperConfig implements DataFlow::ConfigSig {
544
predicate isSource(DataFlow::Node src) { src instanceof SetPolymorphicTypeValidatorSource }
545
0 commit comments