This is a patch release of the 2.25.x long-term support line. It contains the changes listed below, made since 2.25.5, the previous release of the 2.25.x line. The same changes will also be part of 2.26.2.
This release fixes the HTML escaping of the log:dump JSP tag and hardens deserialization in response to sonatype-2026-006746. The hardening only matters to applications that deserialize untrusted data using the internal FilteredObjectInputStream class, without an ObjectInputFilter: a practice we advise against in our Security FAQ.
Warning
The serialized form of some classes, such as Log4jLogEvent and ParameterizedMessage, changes: data serialized by 2.25.5 or earlier cannot be deserialized by 2.25.6, and vice versa.
Fixed
- The
SerialUtiltest helper now applies the deserialization allowlist also on Java 9 and later. (#4270, #4466) - When deserializing with
FilteredObjectInputStream, also apply theObjectInputFilterof the outer stream to nested objects. (#4365, #4466) - When deserializing with
ObjectInputStream, stop adding the Log4j allowlist to theObjectInputFilter. (#4365, #4466) FilteredObjectInputStreamnow rejects dynamic proxy classes. (#4269, #4466)- Align the serialization format of
Log4jLogEventwith that ofObjectMessage: log events serialized by earlier versions can no longer be deserialized. (#4271, #4466) - Use the default Java serialization for
SortedArrayStringMap, except for its values. (#4272, #4466) - Throw instead of ignoring nested objects rejected during deserialization of messages and log events. (#4271, #4466)
- Replace
ObjectArrayMessageandParameterizedMessagearguments that cannot be serialized with their string form. (#4274, #4466) - Fix HTML-escaped
log:dumpJSP tag attributes to prevent XSS (#4316, #4387)
Updated
- Update
com.conversantmedia:disruptorto version1.2.21(#4314) - Update
com.fasterxml.jackson:jackson-bomto version2.19.4(#4314) - Update
com.github.jnr:jnr-ffito version2.2.19(#4314) - Update
com.github.luben:zstd-jnito version1.5.7-26(#4501) - Update
com.google.guava:guavato version33.7.2-jre(#4501) - Update
commons-logging:commons-loggingto version1.3.6(#4314) - Update
io.fabric8:docker-maven-pluginto version0.49.0(#4291) - Update
org.apache.commons:commons-csvto version1.14.1(#4314) - Update
org.apache.kafka:kafka-clientsto version3.9.2(#4314) - Update
org.apache.maven.wrapper:maven-wrapperto version3.3.4(#4314) - Update
org.apache.maven:apache-mavento version3.10.2(#4531) - Update
org.eclipse.angus:angus-activationto version2.0.3(#4314) - Update
org.eclipse.angus:jakarta.mailto version2.0.5(#4314) - Update
org.jctools:jctools-coreto version4.0.7(#4314) - Update
org.springframework.cloud:spring-cloud-contextto version4.3.3(#4314) - Update
org.xerial.snappy:snappy-javato version1.1.10.12(#4501)