File tree 2 files changed +14
-0
lines changed
src/main/java/com/fasterxml/jackson/databind/ext
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ Project: jackson-databind
4
4
=== Releases ===
5
5
------------------------------------------------------------------------
6
6
7
+ (not yet released)
8
+
9
+ #2589 : `DOMDeserializer`: setExpandEntityReferences(false ) may not prevent
10
+ external entity expansion in all cases (CVE-2020 -25649 )
11
+ (reported by Bartosz B)
12
+
7
13
2.10.5 (21 -Jul-2020 )
8
14
9
15
#2787 (partial fix): NPE after add mixin for enum
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