CVE-2026-40992: Spring Boot's Mail auto-configuration does not enable hostname verification
CVE-2026-40992 is a medium-severity flaw (CVSS 5.0) affecting spring boot. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.0 (Medium) |
| Attack vector | Adjacent network |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.1% (top 98%) |
| CISA exploited list | No |
| Weakness | CWE-295 |
| Published | 2026-06-11 |
| Last modified | 2026-09-04 |
Last updated 2026-09-04 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-40992?
spring boot: upgrade to 3.4.17, 3.5.14.1, 4.0.6.1. Exact commands for each OS are on this page.
Is CVE-2026-40992 being exploited?
CVE-2026-40992 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-40992 affect?
CVE-2026-40992 affects spring boot. Severity is medium (CVSS 5.0). 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:
How urgent is CVE-2026-40992?
Priority 18/100. No elevated risk signals yet.
Software pages
Spring Framework vulnerabilities · VMware vulnerabilities
Related CVEs
- CVE-2026-40970 MEDIUM 5.0 UPGRADE When configured to use an SSL bundle, Spring Boot's Elasticsearch auto-configuration does not perform hostname
- CVE-2026-41001 MEDIUM 5.3 UPGRADE Spring Boot's ArtemisEmbeddedConfigurationFactory uses a fixed, static path for the embedded Artemis message b