How does MongoDB address SQL or Query injection? explains how to handle query injection with BSON when using javascript on the server. I haven't been able to track down how/whether Mongoose handles query injection though.
At this point I have two questions:
Mongoose does not protect against query injection so unfortunately you will need to perform your own injection detection following the guidelines from the link above.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With