File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
src/main/java/com/fasterxml/jackson/databind/ext Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1488,6 +1488,8 @@ PJ Fanning (pjfanning@github)
1488
1488
(2.14.0)
1489
1489
* Contributed #3530: Change LRUMap to just evict one entry when maxEntries reached
1490
1490
(2.14.0)
1491
+ * Contributed #3837: Set transformer factory attributes to improve protection against XXE
1492
+ (2.14.3)
1491
1493
1492
1494
Igor Shymko (ancane@github)
1493
1495
* Contributed #3500: Add optional explicit `JsonSubTypes` repeated names check
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ Project: jackson-databind
8
8
9
9
#3784 : `PrimitiveArrayDeserializers$ByteDeser.deserialize` ignores
10
10
`DeserializationProblemHandler` for invalid Base64 content
11
+ #3837 : Set transformer factory attributes to improve protection against XXE
12
+ (contributed by @pjfanning)
11
13
12
14
2.14.2 (28 -Jan-2023 )
13
15
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ public DOMSerializer() {
28
28
try {
29
29
transformerFactory = TransformerFactory .newInstance ();
30
30
transformerFactory .setFeature (XMLConstants .FEATURE_SECURE_PROCESSING , true );
31
+ // 22-Mar-2023, tatu: [databind#3837] add these 2 settings further
31
32
setTransformerFactoryAttribute (transformerFactory , XMLConstants .ACCESS_EXTERNAL_DTD , "" );
32
33
setTransformerFactoryAttribute (transformerFactory , XMLConstants .ACCESS_EXTERNAL_STYLESHEET , "" );
33
34
} catch (Exception e ) {
You can’t perform that action at this time.
0 commit comments