Security mailing lists by PureSourceCode

CVE-2026-59342

MEDIUM 6.5CVSS 3.1

Spring Data MongoDB String query logic injection via function operator bind parameter

Spring Data MongoDB's parameter binding mechanism for JSON-based query and aggregation using
placeholder syntax did not contextually escape bound String argument values when those placeholders appeared inside a quoted string literal.

The application is vulnerable if all of the following are true:

MongoDB server-side JavaScript functions are enabled.
The application accepts input parameters from untrusted sources and uses them without prior sanitization as repository query method argument of type String.
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 , ...)

Published
2 Dec 2026
Last modified
2 Dec 2026
Assigned by
security@vmware.com
NVD status
Awaiting Analysis
Sources
NVDJSONCVE ListJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security@vmware.com (Secondary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L
CVE List vmware CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List Spring Spring Data MongoDB >= 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 5.1.2.1, 5.0.8.1, 4.5.15, 4.4.17, 3.4.22, 5.1.3, 5.0.9

References

History

  • 2 Dec 2026 19:36 UTC · NVD: status Received → Awaiting Analysis
  • 2 Dec 2026 08:19 UTC · NVD: first stored (published 2 Dec 2026)
  • 2 Dec 2026 07:42 UTC · CVE List: first stored (published 2 Dec 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.