BuzzPHP
LightDarkSystem

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

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

Which versions are affected?

PackageAffected versionsFixed in
zbateson/mail-mime-parser (opens in a new tab)< 3.0.6 | >= 4.0.0, < 4.0.23.0.6, 4.0.2

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show zbateson/mail-mime-parser
composer audit

Advisory details

SeverityHighCVSS 7.2
Published
Updated
CVECVE-2026-61815 (opens in a new tab)
GHSAGHSA-36h5-qg4p-q2qf (opens in a new tab)
WeaknessCWE-93

What the advisory says

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

Source: GHSA-36h5-qg4p-q2qf (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories