Insecure Mail Configuration in Spring Boot Affects Security
CVE-2026-40992

5MEDIUM

Key Information:

Vendor

Spring

Vendor
CVE Published:
11 June 2026

What is CVE-2026-40992?

The vulnerability in Spring Boot arises from the Mail auto-configuration failing to enforce hostname verification, which can expose applications to potential man-in-the-middle attacks. If users do not set the appropriate JavaMail property (spring.mail.properties.mail.smtp.ssl.checkserveridentity=true), their applications may transmit sensitive data to unverified hosts, leading to significant security risks.

Affected Version(s)

Spring Boot 4.0.0 < 4.0.6.1

Spring Boot 3.5.0 < 3.5.14.1

Spring Boot 3.4.0 < 3.4.17

References

CVSS V3.1

Score:
5
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Adjacent Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.