CRLF Injection Affecting zbateson/mail-mime-parser package, versions <3.0.6>=4.0.0, <4.0.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.18% (7th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about CRLF Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-ZBATESONMAILMIMEPARSER-20186936
  • published28 Sept 2026
  • disclosed24 Sept 2026
  • creditUnknown

Introduced: 24 Sep 2026

NewCVE-2026-61815  (opens in a new tab)
CWE-93  (opens in a new tab)

How to fix?

Upgrade zbateson/mail-mime-parser to version 3.0.6, 4.0.2 or higher.

Overview

Affected versions of this package are vulnerable to CRLF Injection via the getFilename process. An attacker can inject arbitrary headers into MIME messages by supplying a crafted attachment filename containing carriage return and line feed characters, which are not properly sanitized before being included in email headers. This can allow exfiltration of message contents or manipulation of email delivery.

CVSS Base Scores

version 4.0
version 3.1