Skip to main content
← All vulnerabilities
CVE-2026-23829GHSA-54WQ-72MP-CQ7CGO-2026-4333

Mailpit has SMTP Header Injection via Regex Bypass

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.28.3
2 proofs of concept on GitHub, 1 Nuclei template
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • axllent mailpit

    fixed in 1.28.3

  • github.com/axllent/mailpitGo

    fixed in 1.28.3

References 6

GitHub · axllent/mailpit

GitHub · projectdiscovery/nuclei-templates

GitHub · SimoesCTT/-CVE-2026-23829-CTT-Mailpit-phase-reconstruction-

GitHub · SimoesCTT/CTT-Mailpit-RCE-v1.0---Temporal-Resonance-Mail-Server-Takeover