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

CVE-2026-41696: Spring Data MongoDB SQLi Vulnerability

CVE-2026-41696 is a SQL injection vulnerability in Spring Data MongoDB affecting regex parameter binding in @Query methods. Attackers can break out of regex quoting with crafted strings. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: June 11, 2026

CVE-2026-41696 Overview

CVE-2026-41696 affects Spring Data MongoDB repository query methods annotated with @Query that use regex parameter binding. The framework performs insufficient validation of the bound parameter. An attacker can supply a crafted string to break out of the intended regular expression quoting, enabling NoSQL injection against MongoDB queries. The flaw is classified under [CWE-943] Improper Neutralization of Special Elements in Data Query Logic.

Critical Impact

Attackers can manipulate MongoDB regex queries to retrieve unauthorized data from the backing database, leading to confidentiality loss in applications using vulnerable Spring Data MongoDB repositories.

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-41696 published to NVD
  • 2026-06-10 - Last updated in NVD database

Technical Details for CVE-2026-41696

Vulnerability Analysis

The vulnerability resides in Spring Data MongoDB's handling of @Query-annotated repository methods that use regex parameter binding. When a repository method embeds a user-supplied value inside a regular expression pattern, the framework does not adequately escape regex metacharacters or pattern terminators. An attacker who controls the bound parameter can break out of the intended quoting context and inject arbitrary regex syntax into the underlying MongoDB query document.

Exploitation requires network-reachable application endpoints that pass attacker-controlled input to a vulnerable repository method. The attacker constructs input containing regex metacharacters, alternation, or pattern-closing sequences to alter query semantics. Successful injection lets the attacker match records outside the intended filter scope and extract data the application would not otherwise expose. The advisory indicates no integrity or availability impact, but confidentiality of data accessible to the affected query is at risk.

Root Cause

The root cause is improper neutralization of special characters used in regular expressions when binding parameters to @Query annotated methods. Input intended to be treated as a literal substring is concatenated into a regex without complete escaping, violating the contract between input data and query language semantics ([CWE-943]).

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker submits a crafted parameter value to any application endpoint that forwards input to a vulnerable repository query. Attack complexity is high because the attacker must understand the target query structure and craft a regex payload that produces a useful information disclosure.

No verified public proof-of-concept code is available. Refer to the Spring Security Advisory CVE-2026-41696 for vendor-supplied technical context.

Detection Methods for CVE-2026-41696

Indicators of Compromise

  • Unusual query parameter values containing regex metacharacters such as .*, |, \Q, \E, ^, $, or unbalanced parentheses in HTTP request logs.
  • Application or MongoDB driver logs showing repository queries with malformed or unexpectedly broad regex patterns.
  • Anomalous spikes in result set sizes returned by repository methods that normally produce narrow matches.

Detection Strategies

  • Inventory Spring Data MongoDB usage and identify repository interfaces with @Query annotations that bind parameters into regex expressions.
  • Enable MongoDB profiling or audit logging and alert on queries whose regex pattern length or complexity deviates from baseline.
  • Review web application firewall logs for request parameters containing regex control characters delivered to endpoints that map to MongoDB-backed repositories.

Monitoring Recommendations

  • Correlate inbound HTTP parameter values with outbound MongoDB query payloads to identify injection attempts in real time.
  • Track query response volumes per endpoint and alert when responses exceed expected cardinality for a given user context.
  • Monitor dependency manifests (pom.xml, build.gradle) in CI pipelines for vulnerable Spring Data MongoDB versions.

How to Mitigate CVE-2026-41696

Immediate Actions Required

  • Upgrade Spring Data MongoDB to a fixed release line as indicated in the Spring Security Advisory CVE-2026-41696.
  • Audit application code for @Query annotations that bind user input into regex patterns and validate that input is constrained to expected character classes.
  • Apply strict server-side input validation rejecting regex metacharacters where literal string matching is intended.

Patch Information

Spring has published a security advisory for CVE-2026-41696. Consult the Spring Security Advisory CVE-2026-41696 for the fixed version numbers corresponding to each affected release branch (3.4.x, 4.0.x through 4.5.x, and 5.0.x) and apply the recommended upgrade.

Workarounds

  • Replace regex parameter binding with exact-match query operators where the use case does not require pattern matching.
  • Pre-escape user input using a regex quoting helper before passing it to repository methods that build regex queries, treating all metacharacters as literals.
  • Apply allowlist validation on input destined for regex parameters, restricting characters to [A-Za-z0-9_-] or a similarly safe set.
bash
# Example Maven dependency update - replace VERSION with the fixed release from the advisory
mvn versions:set-property -Dproperty=spring-data-mongodb.version -DnewVersion=VERSION
mvn clean verify

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

  • SeverityMEDIUM

  • CVSS Score5.9

  • EPSS Probability0.03%

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