MongoDBGHSA-54r7-f4f5-j542
### Impact Improper neutralization of special elements in data query logic in...
Fix: upgrade to 5.11.0 or later
Impact
Improper neutralization of special elements in data query logic in the polymorphic relation handling of the MongoDB integration for Laravel can cause a caller-supplied relation identifier to be interpreted as a query condition rather than as a literal identifier. An authenticated user who can influence a stored relation identifier may cause an affected application to return a document other than the intended relation target.
Patches
Fixed in 5.11.0.
Workarounds
Add validation in application.
References
https://jira.mongodb.org/browse/PHPLARA-265
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| mongodb/laravel-mongodb Product | >= 1.2.0, < 5.11.0 | 5.11.0 |
Details and references
- CVSS 4.0
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- Severity from
- GitHub (reviewed advisory)