Medium, CVSS 5.0MavenPublished
Spring Boot's Mail Auto-Configuration Does Not Enable SSL Hostname Verification
CVE-2026-40992 · GHSA-9wxp-w4px-32vh
- Affected
- Maven org.springframework.boot:spring-boot-starter-mail >= 4.0.0, <= 4.0.6; >= 3.5.0, <= 3.5.14; >= 3.4.0, <= 3.4.16
- Fixed in
- 3.5.154.0.7· Partial vendor fix
- Issue
- 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.
Recommended action: Upgrade to 4.0.7 or 3.5.15 by release line; some affected versions have no fix yet, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.