Intel

AIKIDO-2026-70372

spring-boot-autoconfigure is vulnerable to Improper Validation of Certificate with Host Mismatch

Improper Validation of Certificate with Host MismatchCVE-2026-40992 Published Today

50

Medium Risk

This Affects:

javaspring-boot-autoconfigure
3.4.0 - 3.4.16
Fixed in 3.4.17
3.5.0 - 3.5.14
Fixed in 3.5.14.1
4.0.0 - 4.0.6
Fixed in 4.0.6.1
Are you affected? Scan for Free

TL;DR

Spring Boot's mail auto-configuration does not enable SSL hostname verification by default for JavaMail connections. As a result, applications may fail to verify that the mail server's certificate matches the expected hostname, potentially allowing man-in-the-middle attacks when connecting to malicious or impersonated mail servers.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range. Applications that explicitly enable hostname verification through JavaMail properties are not affected.

Background info

spring-boot-autoconfigure is vulnerable to Improper Validation of Certificate with Host Mismatch in versions 3.4.0 - 3.4.16, 3.5.0 - 3.5.14 and 4.0.0 - 4.0.6.

How to fix this

Upgrade the org.springframework.boot:spring-boot-autoconfigure library to a patch version.