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-41717

CVE-2026-41717: Spring Data MongoDB SpEL Injection Flaw

CVE-2026-41717 is a SpEL injection vulnerability in Spring Data MongoDB that occurs during parameter binding in @Query annotations. This article covers the technical details, affected versions, and mitigation strategies.

Published: June 11, 2026

CVE-2026-41717 Overview

CVE-2026-41717 is a Spring Expression Language (SpEL) injection vulnerability affecting Spring Data MongoDB. The flaw occurs during parameter binding when a user-defined repository query method is annotated with @Query and uses a capture-all placeholder. An attacker who supplies crafted input to such a query method can inject SpEL expressions that the framework evaluates at runtime. Successful exploitation leads to arbitrary code execution within the application context.

The weakness is classified as [CWE-917] Improper Neutralization of Special Elements used in an Expression Language Statement. Spring published an advisory listing the affected version ranges across the 3.4.x, 4.0.x through 4.5.x, and 5.0.x release lines.

Critical Impact

Remote attackers can inject SpEL expressions through repository query parameters, leading to arbitrary code execution, data exfiltration, or full compromise of the Spring application.

Affected Products

  • Spring Data MongoDB 5.0.0 through 5.0.5
  • Spring Data MongoDB 4.5.0 through 4.5.11, 4.4.0 through 4.4.14, 4.3.0 through 4.3.16, 4.2.0 through 4.2.15, 4.1.0 through 4.1.14, 4.0.0 through 4.0.15
  • Spring Data MongoDB 3.4.0 through 3.4.19

Discovery Timeline

  • 2026-06-10 - CVE-2026-41717 published to NVD
  • 2026-06-10 - Last updated in NVD database

Technical Details for CVE-2026-41717

Vulnerability Analysis

Spring Data MongoDB lets developers define custom finder methods on repository interfaces using the @Query annotation. Inside these queries, developers can reference method parameters via positional placeholders such as ?0, ?1, or the capture-all placeholder ?#{...} which evaluates SpEL expressions. When a query uses a capture-all placeholder, the parameter binding layer passes untrusted input through the SpEL evaluator.

Because SpEL supports method invocation, type references, and constructor calls, an attacker who controls the bound parameter can craft an expression that executes arbitrary Java code. The evaluation runs with the privileges of the application process, giving the attacker the same access as the Spring application itself.

Root Cause

The root cause is the use of an unrestricted SpEL evaluation context during parameter binding for @Query methods that reference capture-all placeholders. Spring Data MongoDB did not neutralize or restrict expression syntax inside user-supplied parameter values before passing them to the SpEL parser. This matches the [CWE-917] pattern of expression-language injection.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction, although the attack complexity is high because exploitation depends on the target application exposing a vulnerable @Query method that consumes attacker-controlled input. A typical attack chain involves an HTTP endpoint that forwards request parameters into a repository call backed by a vulnerable annotated query. The attacker submits a parameter value containing a SpEL expression, the framework evaluates it during binding, and arbitrary code runs inside the JVM.

No verified public proof-of-concept code is referenced in the advisory. Refer to the Spring Security Advisory CVE-2026-41717 for vendor technical details.

Detection Methods for CVE-2026-41717

Indicators of Compromise

  • HTTP request parameters or JSON bodies containing SpEL syntax fragments such as T(java.lang.Runtime), new ProcessBuilder, or #{...} reaching endpoints backed by Spring Data MongoDB repositories.
  • Unexpected child processes spawned by the Java application process, particularly shells, curl, wget, or scripting interpreters.
  • Outbound connections from the application server to unfamiliar hosts following requests to repository-backed endpoints.

Detection Strategies

  • Perform static analysis of application source to inventory every @Query annotation that uses a capture-all placeholder and trace whether its parameters are reachable from untrusted input.
  • Inspect web application firewall (WAF) and reverse proxy logs for SpEL signatures in query string values, form fields, and JSON properties bound to repository methods.
  • Correlate application logs showing SpEL parse activity with concurrent process-creation or network-egress events on the host.

Monitoring Recommendations

  • Enable verbose logging on the Spring Data MongoDB repository layer during incident review to surface expression evaluation events.
  • Monitor the Java process for unexpected child processes, file writes outside the application working directory, and new outbound sockets.
  • Aggregate application and host telemetry into a centralized analytics pipeline so SpEL-shaped payloads and post-exploitation activity can be correlated across layers.

How to Mitigate CVE-2026-41717

Immediate Actions Required

  • Upgrade Spring Data MongoDB to a fixed release listed in the Spring Security Advisory CVE-2026-41717.
  • Audit every repository interface for @Query methods that use capture-all placeholders and confirm none accept untrusted input until the upgrade is complete.
  • Restrict outbound network egress from application servers to limit post-exploitation options if exploitation occurs before patching.

Patch Information

Spring has released patched versions on each maintained branch. Application owners should update Spring Data MongoDB to the latest patch release within their supported line (3.4.x, 4.0.x through 4.5.x, or 5.0.x) as directed by the vendor advisory. Rebuild and redeploy all services that include Spring Data MongoDB as a direct or transitive dependency.

Workarounds

  • Rewrite affected repository methods to remove capture-all SpEL placeholders, using positional parameters such as ?0 instead.
  • Validate and reject parameter values that contain SpEL syntax characters before they reach the repository layer.
  • Place a WAF rule in front of vulnerable endpoints to block payloads containing T(, new , or #{ patterns until the patched version is deployed.
bash
# Example Maven dependency pin to a patched release
# Replace <FIXED_VERSION> with the patched version from the Spring advisory
mvn versions:use-dep-version \
  -Dincludes=org.springframework.data:spring-data-mongodb \
  -DdepVersion=<FIXED_VERSION> \
  -DforceVersion=true

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechSpring Data Mongodb

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-917
  • Technical References
  • Spring Security Advisory CVE-2026-41717
  • Related CVEs
  • CVE-2026-41696: Spring Data MongoDB SQLi 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