Mongoose versions prior to 8.8.3, 7.8.3, 6.13.5, and 5.13.23 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.
{
"severity": "HIGH",
"cwe_ids": [
"CWE-89"
],
"github_reviewed_at": "2024-12-02T22:19:11Z",
"github_reviewed": true,
"nvd_published_at": "2024-12-02T20:15:08Z"
}