MODERATE 5.0

CVE-2026-40970

Spring Boot's Elasticsearch auto-configuration doesn't perform hostname verification when connecting to the Elasticsearch server.

Description

When configured to use an SSL bundle, Spring Boot's Elasticsearch auto-configuration does not perform hostname verification when connecting to the Elasticsearch server.

Affected: Spring Boot 4.0.0–4.0.5; upgrade to 4.0.6 or later per vendor advisory.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.boot » spring-boot-elasticsearch
>= 4.0.0, < 4.0.6
4.0.6

Blast radius

1affected artifacts
6affected versions
46dependent artifacts (est.)
190dependent versions

13% of the dependent artifacts (6) still pull an affected version in their latest release.

DepthDependent versions
Direct
30
2 hops
92
3 hops
59
4 hops
8
5 hops
1

Most used dependents

Computed from the dependency graph of build 20261128.0605 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.