CVE-2026-40992: Mail Auto-Configuration Does Not Enable SSL Hostname Verification

MEDIUM | JUNE 10, 2026 | CVE-2026-40992

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 Spring Products and Versions

Spring Boot:

  • 4.0.0 - 4.0.6
  • 3.5.0 - 3.5.14
  • 3.4.0 - 3.4.16

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.

Affected version(s) Fix version Availability
4.0.x 4.0.7 OSS
4.0.x 4.0.6.1 Enterprise Support Only
3.5.x 3.5.15 OSS
3.5.x 3.5.14.1 Enterprise Support Only
3.4.x 3.4.17 Enterprise Support Only

No further mitigation steps are necessary.

References

Credit

[Yu Bao (@August829])](https://github.com/August829) - [email protected] – who works for paypal.com.

History

  • 2026-06-10: Initial vulnerability report published.
  • 2026-06-12: Add credit and clarify that no versions other than those listed are affected.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all