CVE-2026-102471: CRLF header injection in vertx-mail-client allows manipulation of outgoing SMTP messages

Published Oct 14, 2026
·
Updated

In Eclipse Vert.x versions [4.0.0, 4.5.34] or [5.0.0,5.0.12] or [5.1.0,5.1.9] or [5.2.0, 5.2.0], the vertx-mail-client does not sanitize CR (\r) or LF (\n) characters in user-supplied email header names and values before writing them into the SMTP DATA section. A CR/LF sequence embedded in a name or value passed to MailMessage.addHeader(), MailMessage.setHeaders(), MailAttachment.addHeader(), or MailAttachment.setHeaders() is written verbatim to the wire, allowing an attacker to inject arbitrary headers (e.g. Bcc, Reply-To, Content-Type) or prepend body content to the outgoing message.

The same weakness affects MIME part metadata set via MailAttachment.setContentType(), setDisposition(), setDescription(), and setContentId(), which are written directly into MIME part headers without validation.

A secondary weakness in Utils.mustEncode(char) additionally allows a bare LF in a From display-name to bypass Q-encoding and reach the wire unchanged.

An unauthenticated attacker who can control any header name, header value, or attachment metadata field passed to the mail client (for example via a web form or API that feeds into MailMessage) can exploit this to redirect email copies, spoof headers, or tamper with message structure.

The impacted component is io.vertx:vertx-mail-client.

Affected Software

1 affected component
maven/io.vertx/vertx-mail-client>=4.0.0<=4.5.34, >=5.0.0<=5.0.12, >=5.1.0<=5.1.9, =5.2.0

Event History

Oct 14, 2026
CVE Published
via MITRE·06:50 PM
Data Sourced
via MITRE·06:50 PM
Description

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using vertx-mail-client are exposed when untrusted input can reach MailMessage.addHeader(), MailMessage.setHeaders(), MailAttachment.addHeader(), MailAttachment.setHeaders(), or attachment metadata setters. Examples include web forms or APIs that pass user-controlled values into outgoing email construction.

2

What does an attacker need to exploit it?

An attacker does not need authentication if they can control a header name, header value, or attachment metadata field that the application passes to the mail client. They can supply CR/LF sequences to inject SMTP or MIME headers, or to prepend message body content.

3

Which releases are affected?

Affected releases are Eclipse Vert.x 4.0.0 through 4.5.34, 5.0.0 through 5.0.12, 5.1.0 through 5.1.9, and 5.2.0. The described behavior also includes a bare-LF bypass in a From display name due to Utils.mustEncode(char).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203