CVE-2026-41696
Published:June 09, 2026
Updated:August 06, 2026
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.
Affected Packages
https://github.com/spring-projects/spring-data-mongodb.git (GITHUB):
Affected version(s) >=1.0.0.M1-MongoDB <5.0.6Fix Suggestion:
Update to version 5.0.6org.springframework.data:spring-data-mongodb (JAVA):
Affected version(s) >=4.5.0 <4.5.12Fix Suggestion:
Update to version 4.5.12org.springframework.data:spring-data-mongodb (JAVA):
Affected version(s) >=3.4.0 <3.4.20Fix Suggestion:
Update to version 3.4.20org.springframework.data:spring-data-mongodb (JAVA):
Affected version(s) >=4.3.0 <4.3.17Fix Suggestion:
Update to version 4.3.17org.springframework.data:spring-data-mongodb (JAVA):
Affected version(s) >=5.0.0 <5.0.6Fix Suggestion:
Update to version 5.0.6org.springframework.data:spring-data-mongodb (JAVA):
Affected version(s) >=4.4.0 <4.4.15Fix Suggestion:
Update to version 4.4.15Related Resources (3)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.2
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.9
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Special Elements in Data Query Logic
EPSS
Base Score:
0.26