Skip to content

Commit 038b471

Browse files
committed
Fix #1899
1 parent b744bf3 commit 038b471

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

release-notes/VERSION

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ Project: jackson-databind
55

66
2.8.11.1 (not yet released)
77

8-
#1872 `NullPointerException` in `SubTypeValidator.validateSubType` when
8+
#1872: `NullPointerException` in `SubTypeValidator.validateSubType` when
99
validating Spring interface
1010
(reported by Rob W)
11+
#1899: Another two gadgets to exploit default typing issue in jackson-databind
12+
(reported by OneSourceCat@github)
1113

1214
2.8.11 (24-Dec-2017)
1315

src/main/java/com/fasterxml/jackson/databind/jsontype/impl/SubTypeValidator.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ public class SubTypeValidator
5050
// [databind#1855]: more 3rd party
5151
s.add("org.apache.tomcat.dbcp.dbcp2.BasicDataSource");
5252
s.add("com.sun.org.apache.bcel.internal.util.ClassLoader");
53+
// [databind#1899]: more 3rd party
54+
s.add("org.hibernate.jmx.StatisticsService");
55+
s.add("org.apache.ibatis.datasource.jndi.JndiDataSourceFactory");
56+
5357
DEFAULT_NO_DESER_CLASS_NAMES = Collections.unmodifiableSet(s);
5458
}
5559

0 commit comments

Comments
 (0)