File tree 3 files changed +15
-1
lines changed
src/main/java/com/fasterxml/jackson/databind/ext
3 files changed +15
-1
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 @@ -7,7 +7,8 @@ Project: jackson-databind
7
7
2.9.10.7 (not yet released)
8
8
9
9
#2589 : `DOMDeserializer`: setExpandEntityReferences(false ) may not prevent
10
- external entity expansion in all cases [CVE-2020 -25649 ]
10
+ external entity expansion in all cases (CVE-2020 -25649 )
11
+ (reported by Bartosz B)
11
12
#2854 : Block one more gadget type (javax.swing, CVE-2020 -xxx)
12
13
(reported by Yangkun (ICSL))
13
14
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