CVE-2026-23829
Description
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.
How to fix
- axllent mailpit1.28.3 or later
- github.com/axllent/mailpit1.28.3 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| axllent mailpit | v < 1.28.3 | 1.28.3 |
| github.com/axllent/mailpitGo | v < 1.28.3 | 1.28.3 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.