CVE-2026-40992

Mail Auto-Configuration Does Not Enable SSL Hostname Verification

State
Published
Severity
5.0 Medium
Published
Jun 11, 2026
Updated
Jun 23, 2026
Reserved
Apr 16, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.0 MediumCVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:Lvmware

Weaknesses

  • CWE-295 Improper Certificate Validation

Affected Products

ProductVersions
Spring BootSpring
  • 4.0.0 to before 4.0.6.1Affected
  • 3.5.0 to before 3.5.14.1Affected
  • 3.4.0 to before 3.4.17Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.