OpenPDF 3.0.7
- Fixed contextName stack exception for context-less PDFs when using PdfTextLocator by @ConvoluteHumanBot in https://github.com/LibrePDF/OpenPDF/pull/1538
- Fix #1576: DO_NOT_ENCRYPT_METADATA no longer silently disables content encryption by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1589
- Fix #1584: mark brotli4j as an optional dependency by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1590
- Bump org.apache.maven.plugins:maven-jar-plugin from 3.5.0 to 3.5.1 by @dependabot[bot] in https://github.com/LibrePDF/OpenPDF/pull/1661
- Bump org.apache.maven.plugins:maven-compiler-plugin from 3.15.0 to 3.16.0 by @dependabot[bot] in https://github.com/LibrePDF/OpenPDF/pull/1660
- Bump org.htmlunit:neko-htmlunit from 5.6.0 to 5.7.0 by @dependabot[bot] in https://github.com/LibrePDF/OpenPDF/pull/1659
- Apply Brotli predictors and fix TIFF and PNG reconstruction by @gregjotau in https://github.com/LibrePDF/OpenPDF/pull/1674
- fix: reject barcode values that would be silently encoded as a different value by @asolntsev in https://github.com/LibrePDF/OpenPDF/pull/1675
- Refactor org.openpdf.text classes to reduce duplication and improve readability by @KrishAdi6969 in https://github.com/LibrePDF/OpenPDF/pull/1672
- Fix open code scanning alerts by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1678
- Fix #1582: fixes to reading PDF files larger than 2 GB by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1591
- Fix #1601: guard against corrupt object-stream references in xref streams by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1602
- Bump actions/checkout to v7 and actions/setup-java to v6 by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1680
- refactor: removed unused-parameter by @Rafabng in https://github.com/LibrePDF/OpenPDF/pull/1671
- Add AGENTS.md by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1681
- Fix #1534: TIFF/1-bit indexed images rendered inverted by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1597
- Fix #1268: cache parsed fonts during content stream processing by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1595
- Fix SonarCloud bugs and security hotspots reported on master by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1679
- Add changelog for 3.0.7 by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1683
- Fix #1585: handle /P permissions written as unsigned int32 in encrypted PDFs by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1592
- Fix test compilation on master by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1684
- Fix #1588: treat unresolvable /Encrypt trailer reference as unencrypted by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1593
- Update dependencies and Maven plugins by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1682
- Validate the byte range of a signature (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1693
- Validate certificate chains with the PKIX algorithm (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1695
- Check OCSP responses and limit the OCSP and TSA clients (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1697
- Reject truncated JPEG 2000 files instead of looping (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1700
- Follow HTTP redirects in NaiveUserAgent only to http and https URLs (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1714
- Validate sizes, ranges and indexes read from font files (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1702
- Check counts, indexes and sizes read from WMF images (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1705
- Refuse DOCTYPE declarations and external entities in the RUPS XFA parser (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1737
- Limit recursion and loops in text extraction, CMap parsing and CID widths (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1730
- Escape links in HtmlWriter and in the HtmlBookmarks tool (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1747
- Guard the renderer against objects that refer back to themselves (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1745
- Validate the predictor parameters in the renderer (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1743
- Do not parse arrays and dictionaries twice when the renderer tests for a reference (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1741
- Detect cycles in the renderer's cross-reference chain (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1739
- Check the status and the signature of an embedded OCSP response (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1735
- Validate PNG predictor parameters before reserving row buffers (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1734
- Limit colspan, rowspan and tab-size when rendering HTML (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1728
- Stop following CSS imports that never end (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1732
- Sign with SHA-256 in the VeriSign filter and document what verify() checks (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1706
- Do not resolve external entities in Java2DRenderer.htmlAsImage and XMLUtil (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1710
- Validate presentational HTML attributes before writing them into CSS (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1724
- Resolve document font names against registered fonts only (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1708
- Detect cycles in cross-reference /Prev chains (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1712
- Bound cross-reference and object stream allocations by the file length (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1716
- Limit the nesting depth of arrays and dictionaries when parsing (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1718
- Do not turn the onclick attribute of links into PDF JavaScript by default (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1719
- Stop walks through fields, outlines and name trees at repeated nodes (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1726
- Guard page tree traversal against cycles and wrong page counts (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1722
- Update the changelog for 3.0.7 with the security fixes by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1749
- Encrypt the recipient envelope of certificate encryption with AES-256 (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1751
- Write an object once in the stream key of PdfSmartCopy by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1754
- Do not draw a form XObject inside itself in OpenPdfCorePageRenderer by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1756
- Limit the work that OpenPdfCorePageRenderer spends on one page by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1758
- Check the size of images without overflow in OpenPdfCorePageRenderer by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1760
- Check the size of JPEG images before OpenPdfCorePageRenderer decodes them by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1762
- Collapse white space around line feeds in linear time by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1764
- Fix the code smells that SonarCloud reports for the security fixes by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1766
- Do not load external DTDs in XmlParser and TagMap (3.0) by @andreasrosdalw in https://github.com/LibrePDF/OpenPDF/pull/1779
- @gregjotau made their first contribution in https://github.com/LibrePDF/OpenPDF/pull/1674
- @KrishAdi6969 made their first contribution in https://github.com/LibrePDF/OpenPDF/pull/1672
Full Changelog: https://github.com/LibrePDF/OpenPDF/compare/3.0.6...3.0.7
OpenPDF 2.4.1
- Bump org.assertj:assertj-core from 3.27.3 to 3.27.4 by @dependabot[bot] in https://github.com/LibrePDF/OpenPDF/pull/1404
- fix: prevent duplicate font family entries in FontFactoryImp by @garcia-d in https://github.com/LibrePDF/OpenPDF/pull/1625
- fix: prevent /P permissions overflow from corrupting decryption key by @garcia-d in https://github.com/LibrePDF/OpenPDF/pull/1632
Full Changelog: https://github.com/LibrePDF/OpenPDF/compare/2.4.0...2.4.1
OpenPDF 2.2.6
- fix: prevent duplicate font family entries in FontFactoryImp by @garcia-d in https://github.com/LibrePDF/OpenPDF/pull/1624
- fix: prevent /P permissions overflow from corrupting decryption key by @garcia-d in https://github.com/LibrePDF/OpenPDF/pull/1630
Full Changelog: https://github.com/LibrePDF/OpenPDF/compare/2.2.5...2.2.6
2.25.6
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
Log4jLogEventandParameterizedMessage, changes: data serialized by2.25.5or earlier cannot be deserialized by2.25.6, and vice versa.
- 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)
- 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)
Release v4.12.7
Release v4.12.7
- a cache-hit failure callback can retry before the eviction handler run by @ryber in https://github.com/Kong/unirest-java/pull/633
Full Changelog: https://github.com/Kong/unirest-java/compare/v4.12.6...v4.12.7