Description
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 , ...)
Severity (CVSS)
| Base score | 6.5 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L |
| Provided by | CNA |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Spring | Spring Data MongoDB | 5.1.0 to <5.1.2.1 [affected]; 5.0.0 to <5.0.8.1 [affected]; 4.5.0 to <4.5.15 [affected]; 4.4.0 to <4.4.17 [affected]; 0 to <3.4.22 [affected]; 5.1.0 to <5.1.3 [affected]; 5.0.0 to <5.0.9 [affected] |
References
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 02 Dec 2026 08:02 UTC.