mongoose
Affected
- introduced
8.0.0-rc0, fixed8.9.5(semver)
Fixed versions
8.9.5
Fix
- Fixed version
8.9.5npm install [email protected]
Advisory
Also known as: BIT-mongoose-2025-23061, CVE-2025-23061
Mongoose search injection vulnerability
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.
Critical Basis: The source's own band: CRITICAL
8.0.0-rc0, fixed 8.9.5 (semver)8.9.5
8.9.5npm install [email protected]7.0.0-rc0, fixed 7.8.4 (semver)7.8.4
7.8.4npm install [email protected]0, fixed 6.13.6 (semver)6.13.6
6.13.6npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0