CVE-2026-102471
CRLF header injection in vertx-mail-client allows manipulation of outgoing SMTP messages
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.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| io.vertx » vertx-corepreliminary | >= 4.0.0, <= 4.5.34>= 4.5.0, < 4.5.35>= 5.0.0, < 5.1.10>= 5.0.0, <= 5.0.12>= 5.1.0, <= 5.1.9>= 5.2.0, <= 5.2.0 | 4.5.35, 5.1.10 |
| io.vertx » vertx-mail-clientpreliminary | >= 4.0.0, <= 4.5.34>= 4.5.0, < 4.5.35>= 5.0.0, < 5.1.10>= 5.0.0, <= 5.0.12>= 5.1.0, <= 5.1.9>= 5.2.0, <= 5.2.0 | 4.5.35, 5.1.10 |
Blast radius
77% of the dependent artifacts (5,980) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 22,804 |
| 2 hops | 46,491 |
| 3 hops | 91,505 |
| 4 hops | 110,176 |
| 5 hops | 65,259 |
| 6 hops | 19,390 |
Most used dependents
- io.quarkus » quarkus-junit52,452 usages
- io.quarkus » quarkus-resteasy1,251 usages
- io.quarkus » quarkus-arc-deployment1,077 usages
- io.vertx » vertx-web927 usages
- io.fabric8 » kubernetes-client684 usages
- io.vertx » vertx-unit647 usages
- io.quarkus » quarkus-resteasy-jackson543 usages
- io.vertx » vertx-web-client523 usages
- io.quarkus » quarkus-smallrye-health469 usages
- io.quarkus » quarkus-smallrye-openapi419 usages
- com.azure » azure-core-test389 usages
- io.quarkus » quarkus-rest-jackson380 usages
- io.quarkus » quarkus-rest372 usages
- io.quarkus » quarkus-grpc357 usages
- io.vertx » vertx-junit5355 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Webhttps://gitlab.eclipse.org/security/cve-assignment/-/work_items/348
- Advisoryhttps://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102471.json
- Advisoryhttps://github.com/vert-x3/vertx-mail-client/security/advisories/GHSA-rm5c-2c7f-gc5g
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-102471
