CVE-2026-23829

published 18 Jan 2026 · updated 20 Jan 2026

Mailpit has SMTP Header Injection via Regex Bypass

6.3MediumCVSS 5.3EPSS 1%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
axllent<1.28.3

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-23829 severity on Zeptric[![CVE-2026-23829](https://zeptric.io/badge/cve/CVE-2026-23829.svg)](https://zeptric.io/cve/CVE-2026-23829)