CVE-2026-23829

Medium

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.

SeverityMedium
CVSS5.3
Exploit probability—
ProductAxllent Mailpit
PublishedJan 19, 2026
First seenJan 19, 2026

How to fix

Update
  • axllent mailpit1.28.3 or later
  • github.com/axllent/mailpit1.28.3 or later

Affected products

ProductAffected versionsFixed in
axllent mailpitv < 1.28.31.28.3
github.com/axllent/mailpitGov < 1.28.31.28.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.