CVE-2019-17426
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).
How to fix
- mongoose5.7.5, 4.13.21 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| mongoosejs mongoose | v ≤ 5.7.4 | — |
| mongoosenpm | 5.0.0 ≤ v < 5.7.5, v < 4.13.21 | 5.7.5, 4.13.21 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.