File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed
src/main/java/com/fasterxml/jackson/databind/ext Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -872,3 +872,8 @@ Kaki King (kingkk9279@g)
872
872
Jon Anderson (Jon901@github)
873
873
* Reported #2544 : java.lang.NoClassDefFoundError Thrown for compact profile1
874
874
(2.9.10.2 )
875
+
876
+ Bartosz Baranowski (baranowb@github)
877
+ * Reported #2589 : `DOMDeserializer`: setExpandEntityReferences(false ) may not prevent
878
+ external entity expansion in all cases
879
+ (2.9.10.7 )
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ Project: jackson-databind
6
6
7
7
2.9.10.7 (not yet released)
8
8
9
+ #2589 : `DOMDeserializer`: setExpandEntityReferences(false ) may not prevent
10
+ external entity expansion in all cases
11
+ (reported by Bartosz B)
12
+
9
13
#2854 : Block one more gadget type (javax.swing, CVE-2020 -xxx)
10
14
(reported by Yangkun (ICSL))
11
15
Original file line number Diff line number Diff line change @@ -39,6 +39,14 @@ public abstract class DOMDeserializer<T> extends FromStringDeserializer<T>
39
39
// 14-Jul-2016, tatu: Not sure how or why, but during code coverage runs
40
40
// (via Cobertura) we get `java.lang.AbstractMethodError` so... ignore that too
41
41
}
42
+
43
+ // [databind#2589] add two more settings just in case
44
+ try {
45
+ parserFactory .setFeature ("http://apache.org/xml/features/disallow-doctype-decl" , true );
46
+ } catch (Throwable t ) { } // as per previous one, nothing much to do
47
+ try {
48
+ parserFactory .setFeature ("http://apache.org/xml/features/nonvalidating/load-external-dtd" , false );
49
+ } catch (Throwable t ) { } // as per previous one, nothing much to do
42
50
DEFAULT_PARSER_FACTORY = parserFactory ;
43
51
}
44
52
You can’t perform that action at this time.
0 commit comments