CVE-2026-140423: Haraka before 3.4.2 Authentication-Results Header Injection via SMTP AUTH Username
Haraka before 3.4.2 contains a header injection vulnerability in plugins/auth/authbase.js checkuser() that writes failed SMTP AUTH usernames into Authentication-Results. Unauthenticated SMTP clients can inject clauses like dkim=pass, spf=pass and dmarc=pass under the server's authserv-id, spoofing authentication results for every later message in the session.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
Any unauthenticated SMTP client that can connect to the affected Haraka server can attempt exploitation. The attacker does not need valid SMTP AUTH credentials because the vulnerable path records failed authentication usernames.
What is required for exploitation?
The attacker needs to submit a crafted SMTP AUTH username containing injected Authentication-Results clauses. Exploitation is network-accessible, requires low complexity, and does not require privileges or user interaction.
What is the practical impact?
An attacker can cause Authentication-Results headers to claim results such as dkim=pass, spf=pass, and dmarc=pass under the server's authserv-id. These spoofed results apply to later messages in the same SMTP session.
Which versions should be remediated?
Haraka versions before 3.4.2 are affected. Update to version 3.4.2 or later.