Skip to content

Releases: zbateson/mail-mime-parser

4.0.2

Choose a tag to compare

@zbateson zbateson released this 24 Jun 13:46

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.

3.0.6

Choose a tag to compare

@zbateson zbateson released this 24 Jun 13:45

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.

4.0.1

Choose a tag to compare

@zbateson zbateson released this 11 Mar 18:28

Full Changelog: 4.0.0...4.0.1

4.0.0

Choose a tag to compare

@zbateson zbateson released this 13 Feb 20:00

Full Changelog: 3.0.5...4.0.0

3.0.5

Choose a tag to compare

@zbateson zbateson released this 02 Dec 00:30
ff054c8

What's Changed

Full Changelog: 3.0.4...3.0.5

3.0.4

Choose a tag to compare

@zbateson zbateson released this 03 Sep 17:20

What's Changed

New Contributors

Full Changelog: 3.0.3...3.0.4

3.0.3

Choose a tag to compare

@zbateson zbateson released this 10 Aug 19:20
  • Fix to allow empty address groups #241
  • Ignore ws between rfc2047 parts in q-part #240
  • Fix PartBuilder parent parameter type

Full Changelog: 3.0.2...3.0.3

3.0.2

Choose a tag to compare

@zbateson zbateson released this 29 Jul 15:41
9a24052

What's Changed

  • Replace global DI library functions with corresponding objects for PRS-4 compliance by @phpfui in #238

Full Changelog: 3.0.1...3.0.2

3.0.1

Choose a tag to compare

@zbateson zbateson released this 29 Apr 21:56

Fixes version constraints for php-di, guzzlehttp/psr7 and phpunit.

2.4.1

Choose a tag to compare

@zbateson zbateson released this 28 Apr 01:00
ff49e02

What's Changed