CVE-2026-40992

published 11 Jun 2026 · updated 23 Jun 2026

Mail Auto-Configuration Does Not Enable SSL Hostname Verification

5.0MediumCVSS 5.0EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 3.4.17, 3.5.14.1 and 4.0.6.1.

Spring Boot's Mail auto-configuration does not enable hostname verification. Applications that set the relevant JavaMail property, such as spring.mail.properties.mail.smtp.ssl.checkserveridentity=true, are not affected. Affected versions: Spring Boot 4.0.0 through 4.0.6; 3.5.0 through 3.5.14; 3.4.0 through 3.4.16.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Spring>=3.4.0 <3.4.17, >=3.5.0 <3.5.14.1, >=4.0.0 <4.0.6.13.4.17, 3.5.14.1, 4.0.6.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-40992 severity on Zeptric[![CVE-2026-40992](https://zeptric.io/badge/cve/CVE-2026-40992.svg)](https://zeptric.io/cve/CVE-2026-40992)