Critical severity · published Jan 15, 2025
CVE-2025-23061
Mongoose before 8.9.5 can improperly use a nested $where filter with a populate() match, leading to search injection
9.8
CVSS
7.2%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)7.2% · higher than 94% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MO
Mongoose · mongoosejs
6.0.0 before 6.13.6; 7.0.0 before 7.8.4; 8.0.0 before 8.9.5 · source: vendor, NVD
Affected product
MO
Mongoose
mongoosejs
More from Mongoose
9.8
CVE-2023-3696
Prototype Pollution in GitHub repository automattic/mongoose prior to 7.3.4
9.8
CVE-2022-2564
Prototype Pollution in GitHub repository automattic/mongoose prior to 6.4.6
9.1
CVE-2024-53900
Mongoose before 8.8.3 can improperly use $where in match, leading to search injection
9.1
CVE-2019-17426
Automattic Mongoose through 5.7.4 allows attackers to bypass access control (in some applications) because any query object with a _bsontype attribute is ignored
7.5
CVE-2026-42334
Mongoose: Improper Sanitization of $nor in sanitizeFilter May Allow NoSQL Injection