Spring Data MongoDB <=5.0.5 Regex Injection via @Query
CVE-2026-41696 Published on June 9, 2026
Spring Data MongoDB Bind Parameter Literal Quoting Breakout
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.
Vulnerability Analysis
CVE-2026-41696 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is consided to have a high level of attack complexity. The potential impact of an exploit of this vulnerability is considered to have a high impact on confidentiality, with no impact on integrity and availability.
Weakness Type
Improper Neutralization of Special Elements in Data Query Logic
The application generates a query intended to access or manipulate data in a data store such as a database, but it does not neutralize or incorrectly neutralizes special elements that can modify the intended logic of the query.
Products Associated with CVE-2026-41696
Want to know whenever a new CVE is published for VMware Spring Framework? stack.watch will email you.
Affected Versions
Spring Data MongoDB:- Version 5.0.0 and below 5.0.6 is affected.
- Version 4.5.0 and below 4.5.12 is affected.
- Version 4.4.0 and below 4.4.15 is affected.
- Version 4.3.0 and below 4.3.17 is affected.
- Version 4.2.0 and below 4.2.16 is affected.
- Version 4.1.0 and below 4.1.15 is affected.
- Version 4.0.0 and below 4.0.16 is affected.
- Version 3.4.0 and below 3.4.20 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.