CVE-2026-23829
published medium CVSS 3.1 · 5.3Mailpit has SMTP Header Injection via Regex Bypass
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| axllent | — | mailpit< 1.28.3 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| axllent | mailpit | < 1.28.3 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-93 CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')
- CWE-150 CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences
References
3Provider assertions
2GitHub_M · cna
Mailpit has SMTP Header Injection via Regex Bypass
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b61c306bbb3d806487d746f6bf0588eab2a7836207c64fe816f8ff7f9f4e82a8
- Ingested
- 23 Sep 2026, 09:06:03 UTC
- Source record
- Official CVE record