Skip to content

4.1.0

Latest

Choose a tag to compare

@Ne-Lexa Ne-Lexa released this 05 Nov 21:32

First release in four years - the project is maintained again.

Security

  • Fixed ZIP Slip via Windows backslash traversal in ZipFile::extractTo() (#100). Entry names are now split on both / and \, and drive-relative, UNC and stream-wrapper style names are rejected with a ZipException.
  • Fixed symlink escape in extractTo() with ZipOptions::EXTRACT_SYMLINKS (#101). Symlink targets that resolve outside the extraction directory are now skipped instead of created (same bug class as CVE-2024-12718 in CPython).

Compatibility

  • PHP 8.5 is fully supported and tested. PHP 8.4/8.5 stream filter warnings are converted to ZipException uniformly.
  • Compatibility with psr/http-message 2.0 (PSR-7 v2 added native return types to StreamInterface).
  • Dev dependency guzzlehttp/psr7 bumped to ^2.0 (v1 is blocked by the composer security advisory policy).

Changed

  • symfony/finder and symfony/http-foundation constraints pinned to ^5.4 || ^6.0 || ^7.0 || ^8.0.
  • Reworded user-facing exception messages for correct English.
  • Added missing zip platform constants (#80).
  • CI now tests PHP 7.4, 8.0 - 8.5 on Ubuntu, macOS and Windows, with a dedicated Psalm job. The PHP version badge and supported versions table were added to the README.

Notes

  • The library still supports PHP 7.4+.
  • 18 regression tests were added for the security fixes.

Full changelog: 4.0.2...4.1.0