NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

CVE-2026-40992: Spring Boot's Mail Auto-Configuration Does Not Enable SSL Hostname Verification

mediumCVSS 3.1 5.0GHSA-9wxp-w4px-32vh

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.

Published Jun 11, 2026 · Updated Aug 18, 2026

Affected packages

org.springframework.boot:spring-boot-starter-mail

Ecosystem
Maven
Affected
>= 4.0.0, <= 4.0.6
Fixed in
4.0.7
Check
mvn dependency:tree -Dincludes=org.springframework.boot:spring-boot-starter-mail

org.springframework.boot:spring-boot-starter-mail

Ecosystem
Maven
Affected
>= 3.5.0, <= 3.5.14
Fixed in
3.5.15
Check
mvn dependency:tree -Dincludes=org.springframework.boot:spring-boot-starter-mail

org.springframework.boot:spring-boot-starter-mail

Ecosystem
Maven
Affected
>= 3.4.0, <= 3.4.16
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.springframework.boot:spring-boot-starter-mail

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology