Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.
{
"versions": [
{
"introduced": "0"
},
{
"fixed": "6.13.5"
},
{
"introduced": "7.0.1"
},
{
"fixed": "7.8.3"
},
{
"introduced": "8.0.1"
},
{
"fixed": "8.8.3"
},
{
"introduced": "0"
},
{
"last_affected": "7.0.0-rc0"
},
{
"introduced": "0"
},
{
"last_affected": "8.0.0-rc0"
}
]
}