# zbateson/mail-mime-parser has CRLF header injection via attachment filename

High severity, published 2026-09-24. Update zbateson/mail-mime-parser to the fixed version of your branch (3.0.6, 4.0.2): composer update zbateson/mail-mime-parser.

Canonical URL: https://buzzphp.com/security/ghsa-36h5-qg4p-q2qf · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 7.2) |
| Published | 2026-09-24 |
| Updated | 2026-09-24 |
| CVE | [CVE-2026-61815](https://nvd.nist.gov/vuln/detail/CVE-2026-61815) |
| GHSA | [GHSA-36h5-qg4p-q2qf](https://github.com/advisories/GHSA-36h5-qg4p-q2qf) |
| Weakness | CWE-93 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| zbateson/mail-mime-parser | < 3.0.6 or >= 4.0.0, < 4.0.2 | 3.0.6, 4.0.2 |

## What to do

Update zbateson/mail-mime-parser to the fixed version of your branch (3.0.6, 4.0.2): composer update zbateson/mail-mime-parser.

Check which version you run with `composer show zbateson/mail-mime-parser`, and every affected package with `composer audit`.

## About this advisory

Impact

A 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 Content-Type and Content-Disposition header values without stripping CR/LF, so a filename containing \r\n serializes as one or more additional, attacker-controlled header lines (for example a forged Bcc: that silently exfiltrates a copy of the outgoing message). The untrusted filename can come directly from parsed inbound mail, so no local construction is required — an application that re-attaches or re-sends a parsed filename is exposed.

Details



## Links

- [GHSA-36h5-qg4p-q2qf on GitHub](https://github.com/advisories/GHSA-36h5-qg4p-q2qf)
- [CVE-2026-61815 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-61815)
- [All Composer security advisories](https://buzzphp.com/security)
