Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify application endpoint accepting user-controlled search input
-
DeliverySubmit crafted regex string as query parameter
-
ExploitSpring Data MongoDB binds value without sufficient regex quoting
-
ExecutionMongoDB evaluates attacker-modified regular expression
-
PersistQuery matches unintended documents in collection
-
ImpactSensitive records returned to attacker
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Query language parameterization
|
| Exploitation Conditions | Exploitation requires that the application uses a Spring Data MongoDB repository method annotated with @Query that includes a regex parameter binding (e.g., |
| Impact | The CVSS 5.9 Medium score is composed of a network attack vector (AV:N), no required privileges (PR:N), no user interaction (UI:N), but high attack complexity (AC:H), unchanged scope (S:U), and impact confined to confidentiality (C:H) with no integrity or availability consequence. The AC:H rating is the primary risk moderator and reflects that exploitation is conditional on the target application using @Query with regex binding and exposing that path to attacker-controlled input - a specific pattern, though not rare in Spring Data MongoDB codebases. No EPSS score was provided in the source data, so exploitation probability cannot be quantified. The vulnerability is not listed in CISA KEV, and no public exploit code has been identified. Real-world risk is moderate-to-significant for applications matching the vulnerable pattern: the C:H impact means a successful exploit could expose the full result set of a query, potentially leaking sensitive MongoDB documents. Applications that do not use @Query with regex parameters are unaffected, which limits the population at risk compared to a framework-wide vulnerability. |
| Exploit ScenarioDerived | An application exposes a product search API that passes a user-supplied search term directly to a Spring Data MongoDB repository method annotated with @Query containing a regex binding such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 10, 2026
Regex parameter binding in Spring Data MongoDB's @Query annotation fails to sufficiently quote user-supplied strings, enabling NoSQL injection that can manipulate query semantics. Unauthenticated remote attackers (PR:N, AV:N) who can influence the bound parameter in applications using this pattern may break out of the intended regular expression context to retrieve unintended documents, resulting in high-impact confidentiality compromise. No confirmed active exploitation or public exploit code has been identified at time of analysis; the CVSS Attack Complexity of High reflects a dependency on a specific application-level coding pattern.
RemediationAI
Upgrade Spring Data MongoDB to a version beyond the listed affected upper bounds in each branch. The vendor advisory at https://spring.io/security/cve-2026-41696 should be consulted for the exact confirmed fix versions - the source data supplied to this analysis identifies affected ranges but does not explicitly name the first patched release for each branch, so specific fix version numbers cannot be cited here without risk of error. As an immediate compensating control where upgrade is not feasible, developers should audit all repository interfaces using @Query annotations with regex parameter bindings and apply application-level escaping of regex metacharacters before passing values to these methods - for example, wrapping user input with Java's Pattern.quote() prior to binding. Alternatively, refactoring affected queries to use MongoTemplate with an explicit Criteria.where().regex() call allows the application to control quoting explicitly. Removing user-controlled input from @Query regex parameters entirely eliminates the attack surface with no trade-offs. Restricting external access to endpoints that invoke affected repository methods is a partial network-layer mitigation but does not address insider or authenticated-user risk.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Spring Data MongoDB is a Java-based persistence layer in the Spring ecosystem (maintained by VMware/Broadcom) that maps repository method signatures to MongoDB queries. The @Query annotation allows developers to embed MongoDB query templates directly on repository interfaces, with ?0-style placeholder syntax for parameter binding. When a regex operator (e.g., { 'field': { $regex: ?0 } }) is used and a user-supplied value is bound, the framework is expected to quote the value so it is treated as a literal pattern. CWE-943 (Improper Neutralization of Special Elements in Data Query Logic - NoSQL) describes this root cause class: the framework interpolates the parameter into the query structure without fully neutralizing regex metacharacters or operator delimiters, allowing the attacker to alter the query's logical behavior. No CPE strings were supplied in the source data; affected product versions are derived solely from the vendor advisory ranges spanning major branches 3.4.x through 5.0.x.
Know when Spring Data Mongodb gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Primary rating from Vendor (vmware).
CVSS VectorVendor: vmware
Lifecycle Timeline
1DescriptionCVE.org
Spring Data MongoDB repository query methods annotated with @Query that use regex parameter binding perform insufficient validation of the bound parameter. An attacker can supply a crafted string to break out of the intended regular expression quoting.
Affected versions: Spring Data MongoDB 5.0.0 through 5.0.5; 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; 3.4.0 through 3.4.19.
Blast Radius
ecosystem impact- 37 maven packages depend on org.springframework.data:spring-data-mongodb (13 direct, 24 indirect)
Ecosystem-wide dependent count for version 5.0.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
NoSQL injection exploits databases that don't use traditional SQL syntax-like MongoDB, CouchDB, or Redis-by manipulating queries through unsanitized user input.
EUVD-2026-35892
GHSA-hc43-m36c-8v33
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB