CVE-2026-41696
MEDIUM 5.9CVSS 3.1Spring Data MongoDB Has Regex Parameter Binding Injection in @Query Repository Methods
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.
- Published
- 10 Jun 2026
- Last modified
- 12 Aug 2026
- Assigned by
- security@vmware.com
- NVD status
- Analyzed
- Weakness
- CWE-943
- Also known as
- GHSA-hc43-m36c-8v33
- Sources
- NVDJSONOSV GHSA-hc43-m36c-8v33JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@vmware.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vmware | spring_data_mongodbcpe:2.3:a:vmware:spring_data_mongodb:*:*:*:*:*:*:*:* |
>= 3.4.0, < 3.4.20 | 3.4.20 |
| NVD | vmware | spring_data_mongodbcpe:2.3:a:vmware:spring_data_mongodb:*:*:*:*:*:*:*:* |
>= 4.0.0, <= 4.0.15 | |
| NVD | vmware | spring_data_mongodbcpe:2.3:a:vmware:spring_data_mongodb:*:*:*:*:*:*:*:* |
>= 4.1.0, <= 4.1.14 | |
| NVD | vmware | spring_data_mongodbcpe:2.3:a:vmware:spring_data_mongodb:*:*:*:*:*:*:*:* |
>= 4.2.0, <= 4.2.15 | |
| NVD | vmware | spring_data_mongodbcpe:2.3:a:vmware:spring_data_mongodb:*:*:*:*:*:*:*:* |
>= 4.3.0, < 4.3.17 | 4.3.17 |
| NVD | vmware | spring_data_mongodbcpe:2.3:a:vmware:spring_data_mongodb:*:*:*:*:*:*:*:* |
>= 4.4.0, < 4.4.15 | 4.4.15 |
| NVD | vmware | spring_data_mongodbcpe:2.3:a:vmware:spring_data_mongodb:*:*:*:*:*:*:*:* |
>= 4.5.0, < 4.5.11.1 | 4.5.11.1 |
| NVD | vmware | spring_data_mongodbcpe:2.3:a:vmware:spring_data_mongodb:*:*:*:*:*:*:*:* |
>= 5.0.0, < 5.0.5.1 | 5.0.5.1 |
| OSV | Maven | org.springframework.data:spring-data-mongodb | >= 5.0.0, < 5.0.6 | 5.0.6 |
| OSV | Maven | org.springframework.data:spring-data-mongodb | >= 4.5.0, < 4.5.12 | 4.5.12 |
| OSV | Maven | org.springframework.data:spring-data-mongodb | >= 4.4.0, <= 4.4.14 | |
| OSV | Maven | org.springframework.data:spring-data-mongodb | >= 4.0.0, <= 4.3.16 | |
| OSV | Maven | org.springframework.data:spring-data-mongodb | <= 3.4.19 |
References
- https://spring.io/security/cve-2026-41696 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-41696 · ADVISORY
- https://github.com/spring-projects/spring-data-mongodb/issues/5205 · WEB
- https://github.com/spring-projects/spring-data-mongodb/commit/24d5afc0c7df223150e06fce3f64c226bcc88ca2 · WEB
- https://github.com/spring-projects/spring-data-mongodb/commit/7d2ea784d262bf4bf4ea8402505f491c8ab66fcc · WEB
- https://github.com/spring-projects/spring-data-mongodb · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 10 Jun 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 10 Jun 2026)