Vulnerability
CVE-2026-23829
Mailpit is an email testing tool and API for developers. Prior to version 1.28.3, Mailpit's SMTP server is vulnerable to Header Injection due to an insufficient Regular Expression used to validate `RCPT TO` and `MAIL FROM` addresses. An attacker can inject arbitrary SMTP headers (or corrupt existing ones) by including carriage return characters (`\r`) in the email address. This header injection occurs because the regex intended to filter control characters fails to exclude `\r` and `\n` when used inside a character class. Version 1.28.3 fixes this issue.
4 advisories report this vulnerability, across 2 ecosystems.
Advisories
-
GHSA-54wq-72mp-cq7c
Mailpit has an SMTP Header Injection via Regex Bypass
-
GO-2026-4333
Mailpit has an SMTP Header Injection via Regex Bypass in github.com/axllent/mailpit
-
SUSE-SU-2026:0403-1
Security update for govulncheck-vulndb
-
openSUSE-SU-2026:21483-1
Security update for govulncheck-vulndb