Skip to main content
VulnerabilityPublished

CVE-2026-59342: Spring Data MongoDB String query logic injection via function operator bind parameter

Affects Spring Data MongoDBSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 6.5 Medium · fixed in 5.1.3 : update Spring Data MongoDB when convenient.

Data as of 2 Dec 2026, 08:16 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (vmware)CVSS 3.16.5
Patch
Available – fixed in 5.1.3, 5.1.2.1, 5.0.9 +4
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Dec 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
SpringSpring Data MongoDBAffected
  • >=5.1.0 <5.1.3
Fixed in
  • 5.1.3
SpringSpring Data MongoDBAffected
  • >=5.1.0 <5.1.2.1
Fixed in
  • 5.1.2.1
SpringSpring Data MongoDBAffected
  • >=5.0.0 <5.0.9
Fixed in
  • 5.0.9
SpringSpring Data MongoDBAffected
  • >=5.0.0 <5.0.8.1
Fixed in
  • 5.0.8.1
SpringSpring Data MongoDBAffected
  • >=4.5.0 <4.5.15
Fixed in
  • 4.5.15
SpringSpring Data MongoDBAffected
  • >=4.4.0 <4.4.17
Fixed in
  • 4.4.17

AI-suggested

Upgrade Spring Data MongoDB to one of the fixed versions: 5.1.3, 5.1.2.1, 5.0.9, 5.0.8.1, 4.5.15, 4.4.17, or 3.4.22. Avoid enabling MongoDB server-side JavaScript functions if not required. Ensure that input parameters used in repository query methods are properly sanitized before use.

Description

CVE-2026-59342 is a vulnerability in Spring Data MongoDB where the parameter binding mechanism for JSON-based queries and aggregations does not properly escape string arguments inside quoted string literals. This flaw can lead to logic injection when MongoDB server-side JavaScript functions are enabled, and untrusted input is used without sanitization in repository query methods annotated with query templates that use placeholders inside script expressions.

References

Community reviews

Loading reviews…