# CVE-2026-23829: Mailpit has SMTP Header Injection via Regex Bypass

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.40%, higher than 73% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-18T23:23:04.176Z
- Modified: 2026-06-17T10:22:10.143Z
- Also known as: GHSA-54wq-72mp-cq7c, GO-2026-4333
- Weaknesses: CWE-93, CWE-150
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- axllent mailpit: < 1.28.3; before 1.28.3
- github.com/axllent/mailpit (Go): before 1.28.3

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/axllent/mailpit/security/advisories/GHSA-54wq-72mp-cq7c> (exploit, advisory, mitigation, third-party-advisory, web)
- <https://github.com/axllent/mailpit/commit/36cc06c125954dec6673219dafa084e13cc14534> (fix, patch, web)
- <https://github.com/axllent/mailpit/releases/tag/v1.28.3> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-23829> (advisory)
- <https://github.com/axllent/mailpit> (package)

## Sources

- CVE List: [CVE-2026-23829](https://www.cve.org/CVERecord?id=CVE-2026-23829), CVE Terms of Use, modified 2026-01-20
- GitHub Advisory Database: [GHSA-54wq-72mp-cq7c](https://github.com/advisories/GHSA-54wq-72mp-cq7c), CC-BY-4.0, modified 2026-02-03
- Go Vulnerability Database: [GO-2026-4333](https://pkg.go.dev/vuln/GO-2026-4333), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2026-23829](https://nvd.nist.gov/vuln/detail/CVE-2026-23829), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-23829 · Whole record: https://cve.day/CVE-2026-23829.json · Rebuilt by cve.day 2026-11-25T22:59:12.920Z
