CVE-2026-23829 MEDIUM

CVE-2026-23829: Mailpit has SMTP Header Injection via Regex Bypass

Vendor Axllent
Product mailpit
Weakness CWE-93 · CRLF injection
Published January 18, 2026
Last update January 20, 2026

CVSS base score

5.3/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality None
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

January 18, 2026 CVE published
January 20, 2026 Record updated