{"id":"GHSA-hc43-m36c-8v33","summary":"Spring Data MongoDB Has Regex Parameter Binding Injection in @Query Repository Methods","details":"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.\n\nAffected versions:\nSpring 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.","aliases":["CVE-2026-41696"],"modified":"2026-08-12T16:41:13.158563Z","published":"2026-06-10T00:31:51Z","database_specific":{"cwe_ids":["CWE-943"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-08-12T16:21:36Z","nvd_published_at":"2026-06-10T00:16:50Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41696"},{"type":"WEB","url":"https://github.com/spring-projects/spring-data-mongodb/issues/5205"},{"type":"WEB","url":"https://github.com/spring-projects/spring-data-mongodb/commit/24d5afc0c7df223150e06fce3f64c226bcc88ca2"},{"type":"WEB","url":"https://github.com/spring-projects/spring-data-mongodb/commit/7d2ea784d262bf4bf4ea8402505f491c8ab66fcc"},{"type":"PACKAGE","url":"https://github.com/spring-projects/spring-data-mongodb"},{"type":"WEB","url":"https://spring.io/security/cve-2026-41696"}],"affected":[{"package":{"name":"org.springframework.data:spring-data-mongodb","ecosystem":"Maven","purl":"pkg:maven/org.springframework.data/spring-data-mongodb"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0"},{"fixed":"5.0.6"}]}],"versions":["5.0.0","5.0.1","5.0.2","5.0.3","5.0.4","5.0.5"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-hc43-m36c-8v33/GHSA-hc43-m36c-8v33.json","last_known_affected_version_range":"\u003c= 5.0.5"}},{"package":{"name":"org.springframework.data:spring-data-mongodb","ecosystem":"Maven","purl":"pkg:maven/org.springframework.data/spring-data-mongodb"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.5.0"},{"fixed":"4.5.12"}]}],"versions":["4.5.0","4.5.1","4.5.10","4.5.11","4.5.2","4.5.3","4.5.4","4.5.5","4.5.6","4.5.7","4.5.8","4.5.9"],"database_specific":{"last_known_affected_version_range":"\u003c= 4.5.11","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-hc43-m36c-8v33/GHSA-hc43-m36c-8v33.json"}},{"package":{"name":"org.springframework.data:spring-data-mongodb","ecosystem":"Maven","purl":"pkg:maven/org.springframework.data/spring-data-mongodb"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.4.0"},{"last_affected":"4.4.14"}]}],"versions":["4.4.0","4.4.1","4.4.10","4.4.11","4.4.12","4.4.13","4.4.2","4.4.3","4.4.4","4.4.5","4.4.6","4.4.7","4.4.8","4.4.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-hc43-m36c-8v33/GHSA-hc43-m36c-8v33.json"}},{"package":{"name":"org.springframework.data:spring-data-mongodb","ecosystem":"Maven","purl":"pkg:maven/org.springframework.data/spring-data-mongodb"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"last_affected":"4.3.16"}]}],"versions":["4.0.0","4.0.1","4.0.10","4.0.11","4.0.12","4.0.2","4.0.3","4.0.4","4.0.5","4.0.6","4.0.7","4.0.8","4.0.9","4.1.0","4.1.1","4.1.10","4.1.11","4.1.12","4.1.2","4.1.3","4.1.4","4.1.5","4.1.6","4.1.7","4.1.8","4.1.9","4.2.0","4.2.1","4.2.10","4.2.11","4.2.12","4.2.2","4.2.3","4.2.4","4.2.5","4.2.6","4.2.7","4.2.8","4.2.9","4.3.0","4.3.1","4.3.10","4.3.11","4.3.12","4.3.13","4.3.2","4.3.3","4.3.4","4.3.5","4.3.6","4.3.7","4.3.8","4.3.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-hc43-m36c-8v33/GHSA-hc43-m36c-8v33.json"}},{"package":{"name":"org.springframework.data:spring-data-mongodb","ecosystem":"Maven","purl":"pkg:maven/org.springframework.data/spring-data-mongodb"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.4.19"}]}],"versions":["1.0.0.RELEASE","1.0.1.RELEASE","1.0.2.RELEASE","1.0.3.RELEASE","1.0.4.RELEASE","1.1.0.RELEASE","1.1.1.RELEASE","1.1.2.RELEASE","1.10.0.RELEASE","1.10.1.RELEASE","1.10.10.RELEASE","1.10.11.RELEASE","1.10.12.RELEASE","1.10.13.RELEASE","1.10.14.RELEASE","1.10.15.RELEASE","1.10.16.RELEASE","1.10.17.RELEASE","1.10.18.RELEASE","1.10.2.RELEASE","1.10.20.RELEASE","1.10.21.RELEASE","1.10.22.RELEASE","1.10.23.RELEASE","1.10.3.RELEASE","1.10.4.RELEASE","1.10.5.RELEASE","1.10.6.RELEASE","1.10.7.RELEASE","1.10.8.RELEASE","1.10.9.RELEASE","1.2.0.RELEASE","1.2.1.RELEASE","1.2.2.RELEASE","1.2.3.RELEASE","1.2.4.RELEASE","1.3.0.RELEASE","1.3.1.RELEASE","1.3.2.RELEASE","1.3.3.RELEASE","1.3.4.RELEASE","1.3.5.RELEASE","1.4.0.RELEASE","1.4.1.RELEASE","1.4.2.RELEASE","1.4.3.RELEASE","1.5.0.RELEASE","1.5.1.RELEASE","1.5.2.RELEASE","1.5.4.RELEASE","1.5.5.RELEASE","1.5.6.RELEASE","1.6.0.RELEASE","1.6.1.RELEASE","1.6.2.RELEASE","1.6.3.RELEASE","1.6.4.RELEASE","1.7.0.RELEASE","1.7.1.RELEASE","1.7.2.RELEASE","1.8.0.RELEASE","1.8.1.RELEASE","1.8.2.RELEASE","1.8.4.RELEASE","1.8.5.RELEASE","1.8.6.RELEASE","1.9.0.RELEASE","1.9.1.RELEASE","1.9.10.RELEASE","1.9.11.RELEASE","1.9.2.RELEASE","1.9.3.RELEASE","1.9.4.RELEASE","1.9.5.RELEASE","1.9.6.RELEASE","1.9.7.RELEASE","1.9.8.RELEASE","1.9.9.RELEASE","2.0.0.RELEASE","2.0.1.RELEASE","2.0.10.RELEASE","2.0.11.RELEASE","2.0.12.RELEASE","2.0.13.RELEASE","2.0.14.RELEASE","2.0.2.RELEASE","2.0.3.RELEASE","2.0.4.RELEASE","2.0.5.RELEASE","2.0.6.RELEASE","2.0.7.RELEASE","2.0.8.RELEASE","2.0.9.RELEASE","2.1.0.RELEASE","2.1.1.RELEASE","2.1.10.RELEASE","2.1.11.RELEASE","2.1.12.RELEASE","2.1.13.RELEASE","2.1.14.RELEASE","2.1.15.RELEASE","2.1.16.RELEASE","2.1.17.RELEASE","2.1.18.RELEASE","2.1.19.RELEASE","2.1.2.RELEASE","2.1.20.RELEASE","2.1.21.RELEASE","2.1.3.RELEASE","2.1.4.RELEASE","2.1.5.RELEASE","2.1.6.RELEASE","2.1.7.RELEASE","2.1.8.RELEASE","2.1.9.RELEASE","2.2.0.RELEASE","2.2.1.RELEASE","2.2.10.RELEASE","2.2.11.RELEASE","2.2.12.RELEASE","2.2.13.RELEASE","2.2.2.RELEASE","2.2.3.RELEASE","2.2.4.RELEASE","2.2.5.RELEASE","2.2.6.RELEASE","2.2.7.RELEASE","2.2.8.RELEASE","2.2.9.RELEASE","3.0.0.RELEASE","3.0.1.RELEASE","3.0.2.RELEASE","3.0.3.RELEASE","3.0.4.RELEASE","3.0.5.RELEASE","3.0.6.RELEASE","3.0.7.RELEASE","3.0.8.RELEASE","3.0.9.RELEASE","3.1.0","3.1.1","3.1.10","3.1.11","3.1.12","3.1.13","3.1.14","3.1.15","3.1.2","3.1.3","3.1.4","3.1.5","3.1.6","3.1.7","3.1.8","3.1.9","3.2.0","3.2.1","3.2.10","3.2.11","3.2.12","3.2.2","3.2.3","3.2.4","3.2.5","3.2.6","3.2.7","3.2.8","3.2.9","3.3.0","3.3.1","3.3.10","3.3.2","3.3.3","3.3.4","3.3.5","3.3.6","3.3.7","3.3.8","3.3.9","3.4.0","3.4.1","3.4.10","3.4.11","3.4.12","3.4.13","3.4.14","3.4.15","3.4.16","3.4.17","3.4.18","3.4.2","3.4.3","3.4.4","3.4.5","3.4.6","3.4.7","3.4.8","3.4.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-hc43-m36c-8v33/GHSA-hc43-m36c-8v33.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}