GitHub Advisoryadvisory · Maven

GHSA-9wxp-w4px-32vh Spring Boot's Mail Auto-Configuration Does Not Enable SSL Hostname Verification

MEDIUM Published 2026-06-11 Modified 2026-08-18 Official page ↗
Aliases
CVE-2026-40992
Ecosystem
Maven
Packages
org.springframework.boot:spring-boot-starter-mail
Severity
Moderate
CVSS vector
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Weaknesses
CWE-295
Reviewed
2026-08-18

Affected packages

• Maven org.springframework.boot:spring-boot-starter-mail: >= 4.0.0, < 4.0.7 → fixed in 4.0.7 • Maven org.springframework.boot:spring-boot-starter-mail: >= 3.5.0, < 3.5.15 → fixed in 3.5.15 • Maven org.springframework.boot:spring-boot-starter-mail: >= 3.4.0, <= 3.4.16 (no fix yet)

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.

Related

Alias · CVE (1)

  • CVE-2026-40992 Spring Boot's Mail auto-configuration does not enable hostname verification. vulnerability

Weakness · CWE (1)

  • CWE-295 Improper Certificate Validation weakness

References