CVE-2026-23829
January 18, 2026
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 Packages
https://github.com/axllent/mailpit.git (GITHUB):
Affected version(s) >=v1.2.6 <v1.28.3Fix Suggestion:
Update to version v1.28.3github.com/axllent/mailpit (GO):
Affected version(s) >=v0.0.0-20220730100312-c6f1c8213b0b <v1.28.3Fix Suggestion:
Update to version v1.28.3Additional Notes
The description of this vulnerability differs from MITRE.
Related Resources (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.9
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
EPSS
Base Score:
0.05