CVE-2026-23829
MEDIUM 5.3CVSS 3.1Mailpit has an SMTP Header Injection via Regex Bypass
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.
- Published
- 19 Jan 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-150CWE-93
- Also known as
- GHSA-54wq-72mp-cq7cGO-2026-4333
- Sources
- NVDJSONOSV GHSA-54wq-72mp-cq7cJSONOSV GO-2026-4333JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | axllent | mailpitcpe:2.3:a:axllent:mailpit:*:*:*:*:*:*:*:* |
< 1.28.3 | 1.28.3 |
| OSV | Go | github.com/axllent/mailpit | < 1.28.3 | 1.28.3 |
References
- https://github.com/axllent/mailpit/commit/36cc06c125954dec6673219dafa084e13cc14534 · Patch, WEB, FIX
- https://github.com/axllent/mailpit/releases/tag/v1.28.3 · Product, Release Notes, WEB
- https://github.com/axllent/mailpit/security/advisories/GHSA-54wq-72mp-cq7c · Exploit, Mitigation, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-23829 · ADVISORY
- https://github.com/axllent/mailpit · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 19 Jan 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 3 Feb 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 20 Jan 2026)