Spring Boot's Mail Auto-Configuration Does Not Enable SSL Hostname Verification
Moderate severity
GitHub Reviewed
Published
Jun 11, 2026
to the GitHub Advisory Database
•
Updated Aug 18, 2026
Package
Affected versions
>= 4.0.0, <= 4.0.6
>= 3.5.0, <= 3.5.14
>= 3.4.0, <= 3.4.16
Patched versions
4.0.7
3.5.15
Description
Published by the National Vulnerability Database
Jun 11, 2026
Published to the GitHub Advisory Database
Jun 11, 2026
Reviewed
Aug 18, 2026
Last updated
Aug 18, 2026
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.
References