packagist zbateson/mail-mime-parser 3.0.6

3 hours ago

What's Changed

  • Strip control characters (CR/LF) from attachment filenames and from decoded header parameter and MIME-encoded-word values -- thanks @iliaal
  • Add configurable limits to MIME parsing, each recording a parse error when reached (override via DI config) -- thanks @iliaal:
    • maxMimePartDepth (default 256) — maximum multipart nesting depth
    • maxHeaderCount (default 1000) — maximum headers per part
    • maxHeaderSizeBytes (default 1048576) — maximum total header bytes per part
  • Append child parts in O(n) rather than O(n²) -- thanks @iliaal.
  • Generate MIME boundaries with random_bytes() -- thanks @iliaal.

Security

This release fixes two privately reported vulnerabilities:

Found and reported privately by @iliaal, who also proposed fixes that informed the patches. Upgrading is recommended.

Don't miss a new mail-mime-parser release

NewReleases is sending notifications on new releases.