Critical severity · published Dec 2, 2024
CVE-2024-53900
Mongoose before 8.8.3 can improperly use $where in match, leading to search injection
9.1
CVSS
4%
EPSS
No
On KEV
Description
Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)4.0% · higher than 90% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MO
Mongoose · Mongoosejs
before 6.13.5; 7.0.1 before 7.8.3; 8.0.1 before 8.8.3; 7.0.0; 8.0.0 · source: NVD, CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-53900
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-53900
Release Notes
https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md
Patch
https://github.com/Automattic/mongoose/commit/c9e86bff7eef477da75a29af62a06d41a835a156
Release Notes
https://github.com/Automattic/mongoose/releases
Vendor Advisory
https://github.com/advisories/GHSA-m7xq-9374-9rvx
Product
https://www.npmjs.com/package/mongoose?activeTab=versions
More from Mongoose
9.8
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
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-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
