A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-40992

CVE-2026-40992: Spring Boot Information Disclosure Flaw

CVE-2026-40992 is an information disclosure vulnerability in Spring Boot's Mail auto-configuration that fails to enable hostname verification. This article covers the technical details, affected versions, and mitigation.

Published: June 11, 2026

CVE-2026-40992 Overview

CVE-2026-40992 affects Spring Boot's Mail auto-configuration, which fails to enable Transport Layer Security (TLS) hostname verification by default. Applications relying on the default auto-configured JavaMailSender accept SMTP server certificates without validating that the certificate's hostname matches the server being contacted. This weakness maps to [CWE-295] Improper Certificate Validation. Attackers positioned on an adjacent network path can intercept SMTP over TLS sessions and present a certificate issued for a different host. Applications that explicitly set spring.mail.properties.mail.smtp.ssl.checkserveridentity=true are not affected.

Critical Impact

Adjacent-network attackers can perform man-in-the-middle interception of outbound SMTP traffic, exposing mail content and credentials transmitted by Spring Boot applications using default Mail auto-configuration.

Affected Products

  • Spring Boot 4.0.0 through 4.0.6
  • Spring Boot 3.5.0 through 3.5.14
  • Spring Boot 3.4.0 through 3.4.16

Discovery Timeline

  • 2026-06-11 - CVE-2026-40992 published to the National Vulnerability Database (NVD)
  • 2026-06-11 - Last updated in NVD database

Technical Details for CVE-2026-40992

Vulnerability Analysis

Spring Boot auto-configures a JavaMailSender bean when spring.mail.* properties are present. The auto-configuration negotiates TLS for SMTPS or STARTTLS sessions but does not set the JavaMail property mail.smtp.ssl.checkserveridentity to true. Without this flag, the underlying JavaMail client validates the certificate chain but skips hostname verification. An attacker who can intercept traffic between the application and the SMTP server can present any certificate trusted by the client's truststore for any hostname.

The impact is bounded by the attacker's network position and the contents of outbound mail. Confidentiality, integrity, and availability impacts are each rated low because exploitation requires an adjacent network position and high attack complexity. Compromised sessions can leak message bodies, recipient lists, and SMTP authentication credentials when plaintext or basic authentication is used.

Root Cause

The defect lies in the Spring Boot Mail auto-configuration logic, which does not propagate a secure default for mail.smtp.ssl.checkserveridentity (or the equivalent mail.smtps.ssl.checkserveridentity). JavaMail's default behavior disables hostname verification unless this property is explicitly enabled. The auto-configured sender therefore inherits an insecure TLS posture even when SMTPS or STARTTLS is in use.

Attack Vector

Exploitation requires the attacker to occupy an adjacent network position between the Spring Boot application and the configured SMTP server. The attacker redirects SMTP traffic, completes the TLS handshake with a certificate that is trusted by the JVM truststore but issued for a different hostname, and then proxies or modifies messages. Credentials sent during SMTP AUTH LOGIN or AUTH PLAIN exchanges become recoverable. The vulnerability does not enable remote code execution or unauthenticated access to the application itself.

No verified public exploit code is available. The vulnerability mechanism is described in the Spring Security Advisory CVE-2026-40992.

Detection Methods for CVE-2026-40992

Indicators of Compromise

  • Unexpected TLS certificates presented by SMTP relays, particularly certificates with subject names that do not match the configured spring.mail.host value.
  • SMTP sessions terminating at IP addresses outside the documented mail infrastructure range.
  • Authentication failures or credential reuse alerts for SMTP service accounts used by Spring Boot applications.

Detection Strategies

  • Inventory Spring Boot applications and identify those that depend on spring-boot-starter-mail at versions 3.4.0–3.4.16, 3.5.0–3.5.14, or 4.0.0–4.0.6.
  • Inspect application configuration for the presence of spring.mail.properties.mail.smtp.ssl.checkserveridentity or mail.smtps.ssl.checkserveridentity; absence indicates exposure.
  • Use TLS inspection on egress traffic to flag SMTP sessions where the server certificate's Subject Alternative Name does not match the destination hostname.

Monitoring Recommendations

  • Log outbound SMTP destinations and certificate fingerprints from application hosts and alert on deviations.
  • Monitor authentication logs on SMTP relays for logins originating from unexpected source IPs.
  • Track Spring Boot dependency versions through Software Bill of Materials (SBOM) tooling and flag affected ranges.

How to Mitigate CVE-2026-40992

Immediate Actions Required

  • Set spring.mail.properties.mail.smtp.ssl.checkserveridentity=true (and mail.smtps.ssl.checkserveridentity=true where SMTPS is used) in all affected applications as an immediate compensating control.
  • Rotate SMTP service account credentials that may have been exposed over sessions lacking hostname verification.
  • Restrict outbound SMTP egress to known relay IP addresses at the network boundary.

Patch Information

Upgrade to a fixed Spring Boot release as published in the Spring Security Advisory CVE-2026-40992. Affected branches are 3.4.0 through 3.4.16, 3.5.0 through 3.5.14, and 4.0.0 through 4.0.6. Apply the corresponding patch release on each branch and redeploy applications that bundle the framework.

Workarounds

  • Explicitly enable hostname verification through JavaMail properties as shown below until the patched version can be deployed.
  • Pin outbound SMTP connections to a trusted internal relay reachable only over a private network segment.
  • Configure mutual TLS (mTLS) between the application and SMTP relay where supported.
bash
# application.properties - enable JavaMail hostname verification
spring.mail.properties.mail.smtp.ssl.checkserveridentity=true
spring.mail.properties.mail.smtps.ssl.checkserveridentity=true
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.starttls.required=true

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechSpring Boot

  • SeverityMEDIUM

  • CVSS Score5.0

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-295
  • Technical References
  • Spring Security Advisory CVE-2026-40992
  • Related CVEs
  • CVE-2026-40971: Spring Boot Information Disclosure Flaw

  • CVE-2026-40974: Spring Boot SSL Hostname Vulnerability

  • CVE-2026-40970: Spring Boot SSL Hostname Vulnerability

  • CVE-2026-41001: Spring Boot Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English