Mongoose before 8.9.5 can improperly use a nested $where filter with a populate() match, leading to search injection. NOTE: this issue exists because of an incomplete fix for CVE-2024-53900.
{
"versions": [
{
"introduced": "0"
},
{
"fixed": "6.13.6"
},
{
"introduced": "7.0.0"
},
{
"fixed": "7.8.4"
},
{
"introduced": "8.0.0"
},
{
"fixed": "8.9.5"
}
]
}