{"schemaVersion":4,"id":"CVE-2026-59342","aliases":[],"status":"published","duplicateOf":null,"title":"Spring Data MongoDB String query logic injection via function operator bind parameter","description":"Spring Data MongoDB's parameter binding mechanism for JSON-based query and aggregation using\nplaceholder syntax did not contextually escape bound String argument values when those placeholders appeared inside a quoted string literal.\n\n The application is vulnerable if all of the following are true:\n\n\n MongoDB server-side JavaScript functions are enabled.\n The application accepts input parameters from untrusted sources and uses them without prior sanitization as repository query method argument of type String.\n The repository method is annotated with an MQL query template (e.g. @Query , @Aggregation ) that uses a value placeholder inside a script expression (e.g. $accumulator , $function , $where , ...)","dates":{"published":"2026-12-02T07:09:23.482Z","modified":"2026-12-02T07:09:23.482Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00552,"percentile":0.47594,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-12-02T00:00:00.000Z","score":0.00552,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00552,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00552,"percentile":0.47594}],"last30":[{"date":"2026-12-02T00:00:00.000Z","score":0.00552,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00552,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00552,"percentile":0.47594}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[],"affected":[{"vendor":"spring","product":"spring data mongodb","name":"Spring Data MongoDB","label":"spring data mongodb","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 5.1.0, < 5.1.2.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"5.1.0","startInclusive":true,"end":"5.1.2.1","endInclusive":false}},{"text":"≥ 5.0.0, < 5.0.8.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"5.0.0","startInclusive":true,"end":"5.0.8.1","endInclusive":false}},{"text":"≥ 4.5.0, < 4.5.15","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"4.5.0","startInclusive":true,"end":"4.5.15","endInclusive":false}},{"text":"≥ 4.4.0, < 4.4.17","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"4.4.0","startInclusive":true,"end":"4.4.17","endInclusive":false}},{"text":"< 3.4.22","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.4.22","endInclusive":false}},{"text":"≥ 5.1.0, < 5.1.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"5.1.0","startInclusive":true,"end":"5.1.3","endInclusive":false}},{"text":"≥ 5.0.0, < 5.0.9","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"5.0.0","startInclusive":true,"end":"5.0.9","endInclusive":false}}],"versionsText":"≥ 5.1.0, < 5.1.2.1 | ≥ 5.0.0, < 5.0.8.1 | ≥ 4.5.0, < 4.5.15 | ≥ 4.4.0, < 4.4.17 | < 3.4.22 | ≥ 5.1.0, < 5.1.3 | ≥ 5.0.0, < 5.0.9","eol":null,"hubHref":"/vendor/spring/spring_data_mongodb"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://spring.io/security/cve-2026-59342","label":"spring.io/security/cve-2026-59342","hostname":"spring.io","tags":[]},{"url":"https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L&version=3.1","label":"nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L&version=3.1","hostname":"nvd.nist.gov","tags":[]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-12-02T07:09:23.482Z","label":"Published","detail":"Vulnerability first disclosed.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,1,65],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00552,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-12-02T07:09:23.482Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-12-02T07:09:23.482Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L","version":"3.1"}],"epss":{"value":0.00552,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T03:02:07.274Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T03:02:07.824Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T03:02:08.009Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T03:00:58.365Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T03:02:05.166Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T03:02:04.195Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T04:05:03.378Z","stale":false,"partial":false}}