CVE-2026-102471

CRLF header injection in vertx-mail-client allows manipulation of outgoing SMTP messages

Published Oct 14, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability arises when the Eclipse Vert.x mail client does not sanitize CR (\r) or LF (\n) characters in any header name, header value, or attachment metadata before sending them in the SMTP DATA section. This omission permits an attacker, who can submit arbitrary header information (for example through a web form or API), to inject additional headers such as Bcc, Reply‑To, or Content‑Type, or to prepend content to the message body. The injected lines are written verbatim to the wire, enabling spoofing of sender/recipient fields, unauthorized email forwarding, or disruption of message structure. The weakness is a classic instance of improper input validation (CWE‑93) that directly compromises the integrity of outgoing e‑mail messages.

Affected Systems

Eclipse Vert.x—specifically the vertx‑mail‑client component. Versions affected are 4.0.0 through 4.5.34, 5.0.0 through 5.0.12, 5.1.0 through 5.1.9, and the single patch release 5.2.0. No other Eclipse Vert.x modules are listed as vulnerable.

Risk and Exploitability

The CVSS score of 6.9 indicates a moderate severity; the EPSS score is not available and the issue is not yet listed in CISA KEV. An attacker can exploit the flaw from any source that can control header fields—typically an unauthenticated user interacting with a public or internal mail‑sending API. Because the injection occurs at the wire level, the attacker need only send crafted header data; no additional conditions or privileged access are required. The overall risk is significant for systems that expose mail services via uncontrolled input, and the lack of a current KEV listing does not diminish the potential impact of in‑band exploitation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the vertx‑mail‑client library to a version newer than 5.2.0 that eliminates the injection flaw.
  • If an upgrade is not immediately possible, strip or encode any CR (\r) or LF (\n) characters from all header names, header values, and attachment metadata before they are passed to MailMessage.addHeader(), MailMessage.setHeaders(), MailAttachment.addHeader(), or MailAttachment.setHeaders().
  • Impose strict input validation on any API or front‑end that allows users to specify e‑mail headers or attachment details, rejecting or sanitizing line‑break characters in those fields.

Generated by OpenCVE AI on October 15, 2026 at 13:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Eclipse Foundation
Eclipse Foundation vert.x
Vendors & Products Eclipse Foundation
Eclipse Foundation vert.x
Type Values Removed Values Added
First Time appeared Eclipse
Eclipse vert.x
CPEs cpe:2.3:a:eclipse:vert.x:*:*:*:*:*:*:*:*
cpe:2.3:a:eclipse:vert.x:5.2.0:*:*:*:*:*:*:*
Vendors & Products Eclipse
Eclipse vert.x
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-93
Type Values Removed Values Added
Description 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.
Title CRLF header injection in vertx-mail-client allows manipulation of outgoing SMTP messages
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-93

    Improper Neutralization of CRLF Sequences ('CRLF Injection')

Sources

Status
PUBLISHED
Assigner
eclipse
Published
Updated
Oct 14, 2026, 7:49 PM
Reserved
Sep 29, 2026, 8:34 AM
Status
Analyzed
Published
Oct 14, 2026, 7:17 PM
Modified
Oct 20, 2026, 7:32 PM