CVE-2026-23829CWE-150CWE-93

Mailpit has SMTP Header Injection via Regex Bypass

Medium · published January 18, 2026

CVSS v3.1
5.3
EPSS
1%
Percentile
72.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.3 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.01402 · 72.3th percentile
Weaknesses
CWE-150 · Improper Neutralization of Escape, Meta, or Control Sequences; CWE-93 · Improper Neutralization of CRLF Sequences ('CRLF Injection')
Published
2026-01-18T23:23Z
EPSS history
Timeline
  • 18 JAN 23:23Z
    Mailpit has SMTP Header Injection via Regex Bypass
    cvelistv5