Mongoose search injection vulnerability
Critical severity
GitHub Reviewed
Published
Jan 15, 2025
to the GitHub Advisory Database
•
Updated Jan 17, 2025
Package
Affected versions
>= 8.0.0-rc0, < 8.9.5
>= 7.0.0-rc0, < 7.8.4
< 6.13.6
Patched versions
8.9.5
7.8.4
6.13.6
Description
Published by the National Vulnerability Database
Jan 15, 2025
Published to the GitHub Advisory Database
Jan 15, 2025
Reviewed
Jan 16, 2025
Last updated
Jan 17, 2025
Mongoose versions prior to 8.9.5, 7.8.4, and 6.13.6 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.NOTE: this issue exists because of an incomplete fix for CVE-2024-53900.
References