NetSight
critical9.1

CVE-2024-53900

Mongoose search injection vulnerability

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
npmmongoose>= 8.0.0-rc0, < 8.8.38.8.3

Affected products

VendorProductAffected versions
MongoosejsMongoose
before 6.13.5
from 7.0.1 before 7.8.3
from 8.0.1 before 8.8.3
Versions 7.0.0, 8.0.0

Weakness classification

References