CVE-2026-23829 Details
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.
A header injection vulnerability has been identified in Mailpit's SMTP server in versions prior to 1.28.2. The issue arises from an inadequate regular expression that fails to properly validate 'RCPT TO' and 'MAIL FROM' addresses, allowing attackers to inject arbitrary SMTP headers or disrupt existing ones by including carriage return characters in the email addresses. This flaw not only violates RFC 5321 by permitting control characters in the envelope addresses but also leads to the creation of malformed .eml files that can cause further header injection issues when processed by other email systems.
Users are advised to update to Mailpit version 1.28.3, which includes a fix for this vulnerability by ensuring that SMTP 'TO' and 'FROM' addresses are compliant with RFC 5322 and preventing header injection.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/axllent/mailpit/commit/36cc06c125954dec6673219dafa084e13cc14534 | [email protected] | Patch |
| https://github.com/axllent/mailpit/releases/tag/v1.28.3 | [email protected] | ProductRelease Notes |
| https://github.com/axllent/mailpit/security/advisories/GHSA-54wq-72mp-cq7c | [email protected] | ExploitMitigationThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-150 | Improper Neutralization of Escape, Meta, or Control Sequences | [email protected] |
| CWE-93 | Improper Neutralization of CRLF Sequences ('CRLF Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| axllent mailpit | < 1.28.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 23, 2026 | Initial Analysis | [email protected] |
| Jan 19, 2026 | CVE Modified | [email protected] |
| Jan 19, 2026 | New CVE Received | [email protected] |