All reports
Medium

Spring Boot's Mail Auto-Configuration Does Not Enable SSL Hostname Verification

Affected versions

Affected versions
>= 4.0.0, <= 4.0.6
Fixed version
4.0.7
Affected versions
>= 3.4.0, <= 3.4.16
Fixed version
Not reported
Affected versions
>= 3.5.0, <= 3.5.14
Fixed version
3.5.15

Exploitation

CVE-2026-40992

Probability of exploitation in the next 30 days: 0.12%

FIRST EPSS · 2026-11-21

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.

Links