{"id":"CVE-2026-40992","title":"Spring Boot's Mail auto-configuration does not enable hostname verification","summary":"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.\n\nAffected version…","severity":"medium","cvss":5,"cvssVector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","cwe":["CWE-295"],"vendor":"vmware","product":"spring_boot","affected":["spring_boot >= 3.4.0, < 3.4.17","spring_boot >= 3.5.0, < 3.5.14.1","spring_boot >= 4.0.0, < 4.0.6.1"],"patched":["spring_boot 4.0.6.1"],"published":"2026-06-11","updated":"2026-09-04","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-40992","references":[{"url":"https://spring.io/security/cve-2026-40992","label":"security@vmware.com"}],"tags":["nvd"],"epss":0.00124,"epssPercentile":0.0243,"ingestedAt":"2026-09-05T13:39:55.204Z","slug":"CVE-2026-40992","body":"## Overview\n\nSpring 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.\n\nAffected versions:\nSpring Boot 4.0.0 through 4.0.6; 3.5.0 through 3.5.14; 3.4.0 through 3.4.16.\n\n## Affected\n\n- `spring_boot >= 3.4.0, < 3.4.17`\n- `spring_boot >= 3.5.0, < 3.5.14.1`\n- `spring_boot >= 4.0.0, < 4.0.6.1`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `spring_boot 4.0.6.1`","depth":"sunlit","depthScore":28,"depthScoreParts":{"impact":27.5,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}