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.
{
"cwe_ids": [
"CWE-295"
],
"cna_assigner": "vmware",
"unresolved_ranges": [
{
"source": "AFFECTED_FIELD",
"extracted_events": [
{
"introduced": "4.0.0"
},
{
"fixed": "4.0.6.1"
},
{
"introduced": "3.5.0"
},
{
"fixed": "3.5.14.1"
},
{
"introduced": "3.4.0"
},
{
"fixed": "3.4.17"
}
]
},
{
"source": "DESCRIPTION",
"extracted_events": [
{
"introduced": "4.0.0"
},
{
"fixed": "4.0.6"
},
{
"introduced": "3.5.0"
},
{
"fixed": "3.5.14"
},
{
"introduced": "3.4.0"
},
{
"fixed": "3.4.16"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40992.json"
}