{"id":"CVE-2026-23829","published":"2026-01-18T23:23:04Z","modified":"2026-01-20T20:08:41Z","title":"Mailpit has SMTP Header Injection via Regex Bypass","vendor":"axllent","product":"mailpit","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01402,"percentile":0.73193,"provenance":"source"},"cwes":[{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences"},{"id":"CWE-150","name":"Improper Neutralization of Escape, Meta, or Control Sequences"}],"references":[{"url":"https://github.com/axllent/mailpit/security/advisories/GHSA-54wq-72mp-cq7c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/axllent/mailpit/commit/36cc06c125954dec6673219dafa084e13cc14534","tags":["x_refsource_MISC"]},{"url":"https://github.com/axllent/mailpit/releases/tag/v1.28.3","tags":["x_refsource_MISC"]}],"priority":{"score":23.3,"factors":[{"name":"EPSS percentile","points":14.64},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.71}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2026-01-28","earliestUrl":"https://github.com/SimoesCTT/CTT-Mailpit-RCE-v1.0---Temporal-Resonance-Mail-Server-Takeover","repos":[{"name":"SimoesCTT/CTT-Mailpit-RCE-v1.0---Temporal-Resonance-Mail-Server-Takeover","url":"https://github.com/SimoesCTT/CTT-Mailpit-RCE-v1.0---Temporal-Resonance-Mail-Server-Takeover","stars":0,"created":"2026-01-28"},{"name":"SimoesCTT/-CVE-2026-23829-CTT-Mailpit-phase-reconstruction-","url":"https://github.com/SimoesCTT/-CVE-2026-23829-CTT-Mailpit-phase-reconstruction-","stars":0,"created":"2026-02-19"}]},"nuclei":[{"id":"CVE-2026-23829","name":"Mailpit < 1.28.2 - SMTP CRLF Injection","severity":"medium","path":"network/cves/2026/CVE-2026-23829.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/network/cves/2026/CVE-2026-23829.yaml"}],"first":{"date":"2026-01-28","source":"PoC-in-GitHub","url":"https://github.com/SimoesCTT/CTT-Mailpit-RCE-v1.0---Temporal-Resonance-Mail-Server-Takeover"},"provenance":"source"},"vendorSlug":"axllent","affectedVersions":[{"vendor":"axllent","product":"mailpit","versions":["< 1.28.3"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-01-20T20:08:32.596156Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/axllent/mailpit","vulnerableRanges":["<1.28.3"],"patched":["1.28.3"],"from":["GHSA-54wq-72mp-cq7c","GO-2026-4333"],"provenance":"source"}],"summary":{"text":"Mailpit, an email testing tool and API for developers, has a header injection flaw in its SMTP server, present in versions before 1.28.3, where the regular expression validating RCPT TO and MAIL FROM addresses fails to exclude carriage return and newline characters. An unauthenticated attacker with network access to the SMTP server can include carriage returns in an email address to inject arbitrary SMTP headers or corrupt existing ones, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:36:49Z"},"euvd":{"id":"EUVD-2026-3297","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-axllent-mailpit-cve-2026-23829","children":[{"from":"CVE-2026-23829","to":"CVE-2026-67445","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["internal/smtpd/smtpd.go"],"commits":["https://github.com/axllent/mailpit/commit/36cc06c125954dec6673219dafa084e13cc14534","https://github.com/axllent/mailpit/commit/993bed95b3c74d95231af93bd0e0d4c3d5b4db4d"],"basis":"rarely changed file"}]},{"from":"CVE-2026-23829","to":"CVE-2026-67447","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["internal/smtpd/smtpd.go"],"commits":["https://github.com/axllent/mailpit/commit/36cc06c125954dec6673219dafa084e13cc14534","https://github.com/axllent/mailpit/commit/8720c6bd8281fc00d458081908f1dbef8e59a98c"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-21859","published":"2026-01-07","fixed":"1.28.1","kev":false},{"cve":"CVE-2026-22689","published":"2026-01-10","fixed":"1.28.2","kev":false,"link":{"from":"CVE-2026-22689","to":"CVE-2026-23829","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/axllent/mailpit","fromFixed":"1.28.2","toFixed":"1.28.3","daysApart":8}]}},{"cve":"CVE-2026-23829","published":"2026-01-18","fixed":"1.28.3","kev":false},{"cve":"CVE-2026-23845","published":"2026-01-19","fixed":"1.28.3","kev":false},{"cve":"CVE-2026-27808","published":"2026-02-25","fixed":"1.29.2","kev":false},{"cve":"CVE-2026-45709","published":"2026-07-20","fixed":"1.30.0","kev":false}],"package":"Go:github.com/axllent/mailpit"}}