Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.springframework.boot/spring-boot-elasticsearch
  4. ›
  5. CVE-2026-40970

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

April 27, 2026 (updated May 6, 2026)

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.

References

  • github.com/advisories/GHSA-c96x-rpm4-349p
  • github.com/spring-projects/spring-boot/releases/tag/v4.0.6
  • nvd.nist.gov/vuln/detail/CVE-2026-40970
  • spring.io/security/cve-2026-40970

Code Behaviors & Features

Detect and mitigate CVE-2026-40970 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 4.0.0 before 4.0.6

Fixed versions

  • 4.0.6

Solution

Upgrade to version 4.0.6 or above.

Impact 5 MEDIUM

CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-295: Improper Certificate Validation

Source file

maven/org.springframework.boot/spring-boot-elasticsearch/CVE-2026-40970.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:19 +0000.