Skip to content

Commit 567194c

Browse files
committed
Fixed #2998
1 parent 3e8fa3b commit 567194c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

release-notes/VERSION-2.x

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Project: jackson-databind
1212
(reported by Al1ex@knownsec)
1313
#2997: Block 2 more gadget types (tomcat/naming-factory-dbcp)
1414
(reported by Al1ex@knownsec)
15+
#2998: Block 2 more gadget types (org.apache.tomcat/tomcat-dbcp)
16+
(reported by Al1ex@knownsec)
1517

1618
2.9.10.7 (02-Dec-2020)
1719

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

+5
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,11 @@ public class SubTypeValidator
221221
s.add("org.apache.tomcat.dbcp.dbcp.datasources.PerUserPoolDataSource");
222222
s.add("org.apache.tomcat.dbcp.dbcp.datasources.SharedPoolDataSource");
223223

224+
// [databind#2998]: org.apache.tomcat/tomcat-dbcp (embedded dbcp 2.x)
225+
// (derivative of #2478)
226+
s.add("org.apache.tomcat.dbcp.dbcp2.datasources.PerUserPoolDataSource");
227+
s.add("org.apache.tomcat.dbcp.dbcp2.datasources.SharedPoolDataSource");
228+
224229
DEFAULT_NO_DESER_CLASS_NAMES = Collections.unmodifiableSet(s);
225230
}
226231

0 commit comments

Comments
 (0)