Skip to content
5.0 Medium

CVE-2026-40992 Spring Boot's Mail auto-configuration does not enable hostname verification

Description

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 products and versions

Product Affected versions Fixed in
Spring Boot 4.0 4.0.0 → < 4.0.6.1 4.0.6.1
Spring Boot 3.5 3.5.0 → < 3.5.14.1 3.5.14.1
Spring Boot 3.4 3.4.0 → < 3.4.17 3.4.17
The 15 CVEs of Spring Boot →
Track this CVE