Mongoose search injection vulnerability
High severity
GitHub Reviewed
Published
Dec 2, 2024
to the GitHub Advisory Database
•
Updated Dec 4, 2024
Package
Affected versions
>= 8.0.0-rc0, < 8.8.3
>= 7.0.0-rc0, < 7.8.3
< 6.13.5
Patched versions
8.8.3
7.8.3
6.13.5
Description
Published by the National Vulnerability Database
Dec 2, 2024
Published to the GitHub Advisory Database
Dec 2, 2024
Reviewed
Dec 2, 2024
Last updated
Dec 4, 2024
Mongoose versions prior to 8.8.3, 7.8.3, and 6.13.5 are vulnerable to improper use of the $where operator. This vulnerability arises from the ability of the $where clause to execute arbitrary JavaScript code in MongoDB queries, potentially leading to code injection attacks and unauthorized access or manipulation of database data.
References