Critical severity · published Oct 10, 2019
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
9.1
CVSS
1.5%
EPSS
No
On KEV
Description
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. For example, adding "_bsontype":"a" can sometimes interfere with a query filter. NOTE: this CVE is about Mongoose's failure to work around this _bsontype special case that exists in older versions of the bson parser (aka the mongodb/js-bson project).
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)1.5% · higher than 74% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MO
Mongoose · Mongoosejs
through 5.7.4 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2019-17426
CVE.org
https://www.cve.org/CVERecord?id=CVE-2019-17426
Patch
https://github.com/Automattic/mongoose/commit/f3eca5b94d822225c04e96cbeed9f095afb3c31c
Third Party Advisory
https://github.com/Automattic/mongoose/issues/8222
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-2024-53900
Mongoose before 8.8.3 can improperly use $where in match, leading to search injection
7.5
CVE-2026-42334
Mongoose: Improper Sanitization of $nor in sanitizeFilter May Allow NoSQL Injection
