<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Mail-Mime-Parser (2.0.0-3.0.5, 4.0.0-4.0.1) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/mail-mime-parser-2.0.0-3.0.5-4.0.0-4.0.1/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Thu, 24 Sep 2026 20:04:50 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/mail-mime-parser-2.0.0-3.0.5-4.0.0-4.0.1/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>CRLF Header Injection Vulnerability in mail-mime-parser</title><link>https://feed.craftedsignal.io/briefs/2026-09-mail-mime-parser-crlf/</link><pubDate>Thu, 24 Sep 2026 20:04:50 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-09-mail-mime-parser-crlf/</guid><description>The zbateson/mail-mime-parser library is vulnerable to CRLF header injection (CVE-2026-61815), allowing attackers to inject arbitrary email headers such as Bcc for silent data exfiltration.</description><content:encoded><![CDATA[<p>The zbateson/mail-mime-parser library (versions &lt; 3.0.6 and 4.0.0 through 4.0.1) contains a CRLF header injection vulnerability, identified as CVE-2026-61815. The flaw exists because the library fails to properly sanitize carriage-return (CR) and line-feed (LF) characters from attachment filenames during both the parsing of inbound MIME messages and the construction of outbound messages.</p>
<p>An attacker can exploit this by crafting a malicious attachment filename containing encoded CRLF characters. When an application parses a message containing such a filename and subsequently re-attaches or re-forwards the file, the library inadvertently serializes the CRLF characters into the email headers. This allows the attacker to inject arbitrary email headers, such as 'Bcc', enabling the silent exfiltration of email content to an attacker-controlled address. This vulnerability affects any application logic that retrieves a filename from a parsed message and uses it to construct a new MIME part.</p>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows for the silent exfiltration of sensitive email communications via unauthorized 'Bcc' header injection. Any enterprise application that automatically processes, forwards, or re-attaches files from inbound emails using the vulnerable library version is at risk.</p>
<h2 id="recommendation">Recommendation</h2>
<p>Prioritized, concrete actions:</p>
<ul>
<li>Upgrade the zbateson/mail-mime-parser library to version 3.0.6 or 4.0.2 immediately.</li>
<li>If immediate patching is not feasible, implement a strict sanitization routine to strip CR and LF characters from any filename retrieved via <code>getFilename()</code> before using it in any outbound email construction, such as: <code>preg_replace('/[\r\n]+/', ' ', $filename)</code>.</li>
<li>Conduct a code review of downstream applications using mail-mime-parser to identify instances where filenames parsed from inbound messages are reused in outgoing mail construction.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">threat</category><category>denial-of-service</category><category>vulnerability</category><category>php</category><category>mail-mime-parser</category></item></channel></rss>