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)
14881488 (2.14.0)
14891489 * Contributed #3530: Change LRUMap to just evict one entry when maxEntries reached
14901490 (2.14.0)
1491+ * Contributed #3837: Set transformer factory attributes to improve protection against XXE
1492+ (2.14.3)
14911493
14921494Igor Shymko (ancane@github)
14931495 * 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
88
99#3784 : `PrimitiveArrayDeserializers$ByteDeser.deserialize` ignores
1010 `DeserializationProblemHandler` for invalid Base64 content
11+ #3837 : Set transformer factory attributes to improve protection against XXE
12+ (contributed by @pjfanning)
1113
12142.14.2 (28 -Jan-2023 )
1315
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ public DOMSerializer() {
2828 try {
2929 transformerFactory = TransformerFactory .newInstance ();
3030 transformerFactory .setFeature (XMLConstants .FEATURE_SECURE_PROCESSING , true );
31+ // 22-Mar-2023, tatu: [databind#3837] add these 2 settings further
3132 setTransformerFactoryAttribute (transformerFactory , XMLConstants .ACCESS_EXTERNAL_DTD , "" );
3233 setTransformerFactoryAttribute (transformerFactory , XMLConstants .ACCESS_EXTERNAL_STYLESHEET , "" );
3334 } catch (Exception e ) {
You can’t perform that action at this time.
0 commit comments