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)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.boot » spring-boot-elasticsearch | >= 4.0.0, < 4.0.6 | 4.0.6 |
Blast radius
13% of the dependent artifacts (6) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 30 |
| 2 hops | 92 |
| 3 hops | 59 |
| 4 hops | 8 |
| 5 hops | 1 |
Most used dependents
- org.springframework.boot » spring-boot-starter-data-elasticsearch193 usages
- org.springframework.boot » spring-boot-starter-test-classic20 usages
- io.github.vsvyatski » spring-content-autoconfigure13 usages
- org.opensearch.client » spring-data-opensearch-starter10 usages
- org.springframework.boot » spring-boot-starter-elasticsearch9 usages
- org.springframework.boot » spring-boot-data-elasticsearch8 usages
- org.springframework.ai » spring-ai-starter-vector-store-elasticsearch7 usages
- org.springframework.boot » spring-boot-starter-classic4 usages
- io.softa » es-starter2 usages
- org.springframework.boot » spring-boot-autoconfigure-classic2 usages
- org.springframework.boot » spring-boot-data-elasticsearch-test2 usages
- org.springframework.boot » spring-boot-starter-data-elasticsearch-test2 usages
- org.springframework.boot » spring-boot-starter-elasticsearch-test2 usages
- org.springframework.cloud.fn » spring-elasticsearch-consumer2 usages
- org.opensearch.client » spring-data-opensearch-test-autoconfigure1 usages
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.
References
| Advisory | NVD CVE-2026-40970 | nvd.nist.gov |
| Package | spring-projects/spring-boot | github.com |
| Web | spring-projects/spring-boot release v4.0.6 | github.com |
| Web | security/cve-2026-40970 | spring.io |
