zbateson/mail-mime-parser
An email parser written in PHP
Activity
- Latest release
- 3d ago
- Total releases
- 81
- Cadence
- ~27 days
- Last 12 months
- 14
Reach
- Stars
- 554
Details
- License
- BSD-2-Clause
- First release
- Nov 23, 2015
| Version | Released | |
|---|---|---|
4.0.8
patch
|
4.0.8
patch
Dependencies (5)
Changelog
Compare changes
|
|
4.0.7
patch
|
4.0.7
patch
Dependencies (5)
Changelog
Compare changes
|
|
3.0.9
patch
| ||
4.0.6
patch
|
4.0.6
patch
Dependencies (5)
Changelog
Compare changes
|
|
4.0.5
patch
|
4.0.5
patch
Dependencies (5)
Changelog
Compare changes
|
|
3.0.8
patch
| ||
3.0.7
patch
| ||
4.0.4
patch
|
4.0.4
patch
Dependencies (5)
Changelog
Compare changes
|
|
4.0.3
patch
|
4.0.3
patch
Dependencies (5)
Changelog
Compare changes
|
|
3.0.6
patch
| ||
4.0.2
patch
| ||
4.0.1
patch
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
4.0.0
major
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
3.0.5
patch
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
3.0.4
patch
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
3.0.3
patch
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
3.0.2
patch
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
3.0.1
patch
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
2.4.1
patch
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
3.0.0
major
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
3.0.0-beta.2
pre
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
3.0.0-beta
pre
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
2.4.0
minor
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
2.3.0
minor
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
2.2.3
patch
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
2.2.2
patch
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
2.2.1
patch
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
2.2.0
minor
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
2.1.1
patch
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
2.1.0
minor
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
2.0.1
patch
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
1.3.3
patch
1 CVE
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
2.0.0
major
2 CVEs
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev
CVE-2026-61816
GHSA-f6v3-2qmr-vfjx
Sep 24, 2026
zbateson/mail-mime-parser has uncontrolled resource consumption (CPU/memory DoS) parsing untrusted MIME
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
ImpactAn uncontrolled resource consumption / algorithmic complexity vulnerability affecting any application that parses untrusted email with this library. Three independent parsing paths are super-linear in cost, so a byte-size cap on the caller side does not bound the work done. A crafted message under 2 MB can consume seconds of CPU or hundreds of megabytes to multiple gigabytes of memory (leading to an out-of-memory kill), enabling denial of service. The parse is lazy, but the cost is paid on the first Details
Proof of concept
Run with a raised memory limit so the header case does not abort early: php -d memory_limit=2048M poc.php // nesting depth=2000 input= 0.13 MB time= 2.08 s peak= 30.0 MB // siblings=50000 input= 1.72 MB time= 5.11 s peak= 276.0 MB // headers=300000 input= 2.29 MB time= 0.40 s peak= 380.3 MB PatchesFixed in 4.0.2 and 3.0.6. The fixes add configurable limits on multipart nesting depth and on header count / total header size (recording a parse error past the threshold rather than throwing), and change sibling append to O(n). Users should upgrade to one of these (or later) versions. Versions 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. (Versions prior to 2.0 used a different parser and are not affected by all three paths.) WorkaroundsThese costs are super-linear, so an input byte-size cap alone does not bound them. Until upgrading, restrict exposure of the parser to untrusted input, and run parsing under a constrained memory_limit and execution time limit so a malicious message fails its own request rather than exhausting the host.
Affected versions
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
+ 9 more Show less
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
2.0.0-beta.1
pre
1 CVE
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
2.0.0-beta
pre
1 CVE
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
1.3.2
patch
1 CVE
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
1.3.1
patch
1 CVE
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
1.3.0
minor
1 CVE
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
1.2.3
patch
1 CVE
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
1.2.2
patch
1 CVE
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
1.2.1
patch
1 CVE
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
1.2.0
minor
1 CVE
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
1.1.8
patch
1 CVE
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
1.1.7
patch
1 CVE
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
1.1.6
patch
1 CVE
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
1.1.5
patch
1 CVE
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
1.1.4
patch
1 CVE
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
1.1.3
patch
1 CVE
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
0.4.13
patch
1 CVE
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev | ||
1.1.2
patch
1 CVE
CVE-2026-61815
GHSA-36h5-qg4p-q2qf
Sep 24, 2026
zbateson/mail-mime-parser has CRLF header injection via attachment filename
7.2
/ 10
High
Network
Low
None
None
Changed
Low
Low
None
ImpactA CRLF (carriage-return / line-feed) header injection affecting any application that uses this library to build or forward MIME messages with an attacker-influenced attachment filename. Attachment filenames are interpolated into the DetailsOn the outbound side,
The The decode side is affected as well, which is what makes purely inbound exploitation possible:
As a result Proof of concept
PatchesFixed in 4.0.2 and 3.0.6. Users should upgrade to one of these (or later) versions. Versions 1.x and 2.x are also affected but are end-of-life and will not receive patches; users on those lines should upgrade to a fixed release. WorkaroundsIf upgrading is not immediately possible, strip CR and LF from any filename before passing it to attachment APIs, and from the result of getFilename() before reusing it in a constructed message — e.g. preg_replace('/[\r\n]+/', ' ', $filename).
Affected versions
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
+ 58 more Show less
0.4.0
0.4.1
0.4.10
0.4.11
0.4.12
0.4.13
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
1.0-alpha
1.0-alpha.2
1.0-beta
1.0.0
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.2.0
1.2.1
1.2.2
1.2.3
1.3.0
1.3.1
1.3.2
1.3.3
2.0.0
2.0.0-beta
2.0.0-beta.1
2.0.1
2.1.0
2.1.1
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
3.0.0
3.0.0-beta
3.0.0-beta.2
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
4.0.0
4.0.1
Fixed in
3.0.6
4.0.2
References
Updated Sep 24, 2026 · Source: OSV.dev |