Critical severity · published Jul 28, 2022
CVE-2022-2564
Prototype Pollution in GitHub repository automattic/mongoose prior to 6.4.6
9.8
CVSS
31.3%
EPSS
No
On KEV
Description
Prototype Pollution in GitHub repository automattic/mongoose prior to 6.4.6.
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)31.3% · higher than 98% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MO
Mongoose · Mongoosejs
before 5.13.15; 6.0.0 before 6.4.6 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-2564
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-2564
Exploit
https://github.com/Automattic/mongoose/blob/51e758541763b6f14569744ced15cc23ab8b50c6/lib/schema.js#L88-L141
Patch
https://github.com/Automattic/mongoose/compare/6.4.5...6.4.6
Patch
https://github.com/automattic/mongoose/commit/a45cfb6b0ce0067ae9794cfa80f7917e1fb3c6f8
Exploit
https://huntr.dev/bounties/055be524-9296-4b2f-b68d-6d5b810d1ddd
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.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
