CVE-2026-40992: CWE-295: Improper Certificate Validation in Spring Spring Boot
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.
AI Analysis
Technical Summary
CVE-2026-40992 is a vulnerability in Spring Boot's Mail auto-configuration that results in improper certificate validation due to hostname verification being disabled by default. This affects Spring Boot versions 3.4.0 through 3.4.16, 3.5.0 through 3.5.14, and 4.0.0 through 4.0.6. The vulnerability is identified as CWE-295 (Improper Certificate Validation). Applications that explicitly enable hostname verification by setting the JavaMail property spring.mail.properties.mail.smtp.ssl.checkserveridentity=true are not vulnerable. No official patch or remediation level has been published yet.
Potential Impact
The vulnerability allows for potential man-in-the-middle attacks or interception of mail server communications due to the lack of hostname verification in SSL/TLS connections. This can lead to limited confidentiality, integrity, and availability impacts as indicated by the CVSS vector (C:L/I:L/A:L). However, the impact is mitigated if the relevant JavaMail property is set to enable hostname verification.
Mitigation Recommendations
Currently, no official patch or fix has been published. To mitigate this vulnerability, applications should explicitly enable hostname verification by setting the JavaMail property spring.mail.properties.mail.smtp.ssl.checkserveridentity=true in their configuration. This setting disables the vulnerability by enforcing proper certificate validation. Monitor the vendor advisory for any future official fixes or updates.
CVE-2026-40992: CWE-295: Improper Certificate Validation in Spring Spring Boot
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 v3.1
Score 5.0medium
Affected software
pkg:maven/org.springframework.boot/spring-bootRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-40992 is a vulnerability in Spring Boot's Mail auto-configuration that results in improper certificate validation due to hostname verification being disabled by default. This affects Spring Boot versions 3.4.0 through 3.4.16, 3.5.0 through 3.5.14, and 4.0.0 through 4.0.6. The vulnerability is identified as CWE-295 (Improper Certificate Validation). Applications that explicitly enable hostname verification by setting the JavaMail property spring.mail.properties.mail.smtp.ssl.checkserveridentity=true are not vulnerable. No official patch or remediation level has been published yet.
Potential Impact
The vulnerability allows for potential man-in-the-middle attacks or interception of mail server communications due to the lack of hostname verification in SSL/TLS connections. This can lead to limited confidentiality, integrity, and availability impacts as indicated by the CVSS vector (C:L/I:L/A:L). However, the impact is mitigated if the relevant JavaMail property is set to enable hostname verification.
Mitigation Recommendations
Currently, no official patch or fix has been published. To mitigate this vulnerability, applications should explicitly enable hostname verification by setting the JavaMail property spring.mail.properties.mail.smtp.ssl.checkserveridentity=true in their configuration. This setting disables the vulnerability by enforcing proper certificate validation. Monitor the vendor advisory for any future official fixes or updates.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- vmware
- Date Reserved
- 2026-04-16T02:19:09.389Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a2a59ba318757064921d3aa
Added to database: 06/11/2026, 06:46:18 UTC
Last enriched: 06/24/2026, 14:29:33 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 114
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.