Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 98%

CVE-2026-40992: CWE-295: Improper Certificate Validation in Spring Spring Boot

0
Medium
VulnerabilityCVE-2026-40992cvecve-2026-40992cwe-295
Published: 06/11/2026 (06/11/2026, 05:03:53 UTC)
Source: CVE Database V5
Vendor/Project: Spring
Product: Spring Boot

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.

CVSS v3.1

Score 5.0medium

Attack Vector
Adjacent Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

Affected software

org.springframework.boot/spring-boot
pkg:maven/org.springframework.boot/spring-boot
Affected versions
=3.4.0 <=3.4.16=3.5.0 <=3.5.14=4.0.0 <=4.0.6

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/24/2026, 14:29:33 UTC

Technical Analysis

CVE-2026-40992 is a vulnerability in Spring Boot's Mail auto-configuration that results in improper certificate validation due to hostname verification being disabled by default. This affects Spring Boot versions 3.4.0 through 3.4.16, 3.5.0 through 3.5.14, and 4.0.0 through 4.0.6. The vulnerability is identified as CWE-295 (Improper Certificate Validation). Applications that explicitly enable hostname verification by setting the JavaMail property spring.mail.properties.mail.smtp.ssl.checkserveridentity=true are not vulnerable. No official patch or remediation level has been published yet.

Potential Impact

The vulnerability allows for potential man-in-the-middle attacks or interception of mail server communications due to the lack of hostname verification in SSL/TLS connections. This can lead to limited confidentiality, integrity, and availability impacts as indicated by the CVSS vector (C:L/I:L/A:L). However, the impact is mitigated if the relevant JavaMail property is set to enable hostname verification.

Mitigation Recommendations

Currently, no official patch or fix has been published. To mitigate this vulnerability, applications should explicitly enable hostname verification by setting the JavaMail property spring.mail.properties.mail.smtp.ssl.checkserveridentity=true in their configuration. This setting disables the vulnerability by enforcing proper certificate validation. Monitor the vendor advisory for any future official fixes or updates.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
vmware
Date Reserved
2026-04-16T02:19:09.389Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a2a59ba318757064921d3aa

Added to database: 06/11/2026, 06:46:18 UTC

Last enriched: 06/24/2026, 14:29:33 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 114

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses