Skip to main content
CVE-2026-59342VulnerabilityPublished

Spring Data MongoDB's parameter binding mechanism for JSON-based query and aggregation using placeholder syntax did

Source GCVE Database

0
Compare
Authoritative record:CVE-2026-59342· Medium 6.5

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, 10:34 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

If you cannot patch yet, applications should avoid enabling MongoDB server-side JavaScript functions or ensure that all input parameters used in repository query methods are properly sanitized before binding. Avoid using placeholders inside quoted string literals within script expressions in MQL query templates.

Description

Spring Data MongoDB's parameter binding mechanism for JSON-based queries and aggregations using placeholder syntax does not properly escape bound string argument values when these placeholders appear inside quoted string literals. This vulnerability can be exploited if MongoDB server-side JavaScript functions are enabled, untrusted input parameters are used without sanitization as repository query method arguments of type String, and the repository method uses an MQL query template with a value placeholder inside a script expression such as $accumulator, $function, or $where.

References

Community reviews

Loading reviews…