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

CVE-2026-40992: Spring Boot's Mail Auto-Configuration Does Not Enable SSL Hostname Verification

June 11, 2026 (updated August 18, 2026)

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.

Affected versions: Spring Boot 4.0.0 through 4.0.6; 3.5.0 through 3.5.14; 3.4.0 through 3.4.16.

References

  • github.com/advisories/GHSA-9wxp-w4px-32vh
  • nvd.nist.gov/vuln/detail/CVE-2026-40992
  • spring.io/security/cve-2026-40992

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.4.0 up to 3.4.16, all versions starting from 3.5.0 before 3.5.15, all versions starting from 4.0.0 before 4.0.7

Fixed versions

  • 3.5.15
  • 4.0.7

Solution

Upgrade to versions 3.5.15, 4.0.7 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-starter-mail/CVE-2026-40992.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 12 Sep 2026 00:20:53 +0000.