CVE Catalog

CVE-2026-40992

MediumCVSS 5.0
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.12%

3th percentile - higher than 3% of all known CVEs

Summary

In Spring Boot, a vulnerability was found in the mail auto-configuration that does not enable hostname verification. Applications that explicitly set the JavaMail property (e.g., spring.mail.properties.mail.smtp.ssl.checkserveridentity=true) are not affected. Affected versions are Spring Boot 4.0.0-4.0.6, 3.5.0-3.5.14, and 3.4.0-3.4.16.

Risk Assessment

The risk involves potential man-in-the-middle attacks on mail connections, as the lack of hostname verification allows impersonation of the mail server.

Recommendation

It is recommended to update Spring Boot to version 4.0.7, 3.5.15, or 3.4.17 (or later), or explicitly set the server identity verification property.

Other vulnerabilities in Spring Boot

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS