CVE-2026-40992: Mail Auto-Configuration Does Not Enable SSL Hostname Verification
Vulnerability summary
CVE-2026-40992 is a medium (CVSS 5.0) Improper Certificate Validation vulnerability in spring spring boot. EPSS estimates a 0.12% chance of exploitation in the next 30 days, higher than 2.2% of scored vulnerabilities.
Not severe (CVSS 5, adjacent network); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 11-06-2026PublishedVulnerability first disclosed.
- 23-06-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · MavenEcosystem advisory · calculated5.0MediumCVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
- NVDNIST5.0MediumCVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS trend
Probability
0.12%
Chance of exploitation in the next 30 days
Percentile
2%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.12% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: adjacent network, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Org.springframework.boot1 product
- spring-boot-starter-mail≥ 4.0.0, < 4.0.7 | ≥ 3.5.0, < 3.5.15 | ≥ 3.4.0, ≤ 3.4.16
Spring1 product
- spring boot≥ 4.0.0, < 4.0.6.1 | ≥ 3.5.0, < 3.5.14.1 | ≥ 3.4.0, < 3.4.17
Vmware1 product
- spring_boot≥ 3.4.0, < 3.4.17 | ≥ 3.5.0, < 3.5.14.1 | ≥ 4.0.0, < 4.0.6.1
3 vendors · 3 products