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

Published Jun 11, 2026
·
Updated

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 Software

1 affected component
VMware Spring Boot>=4.0.0<=4.0.6, >=3.5.0<=3.5.14, >=3.4.0<=3.4.16

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Set spring.mail.properties.mail.smtp.ssl.checkserveridentity=true (for example in application.properties or application.yml) to enable JavaMail SSL hostname verification so the application is not affected.

    Spring Boot (Mail auto-configuration) spring.mail.properties.mail.smtp.ssl.checkserveridentity = true

Event History

Jun 11, 2026
CVE Published
via MITRE·05:03 AM
Data Sourced
via MITRE·05:03 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-40992?

The severity of CVE-2026-40992 is rated as medium.

2

How do I fix CVE-2026-40992?

To fix CVE-2026-40992, set the JavaMail property spring.mail.properties.mail.smtp.ssl.checkserveridentity=true in your application.

3

Which versions of Spring Boot are affected by CVE-2026-40992?

CVE-2026-40992 affects Spring Boot versions 4.0.0 through 4.0.6, 3.5.0 through 3.5.14, and 3.4.0 and earlier.

4

What does CVE-2026-40992 impact?

CVE-2026-40992 impacts applications using Spring Boot's Mail auto-configuration that do not enable hostname verification.

5

What are the risks associated with CVE-2026-40992?

The risks associated with CVE-2026-40992 include the potential for man-in-the-middle attacks due to the lack of SSL hostname verification.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203