CVE-2019-17426Mongoosejs Mongoose
Critical 9.1 No auth needed
Follow: this CVE · Mongoosejs · Mongoosejs Mongoose We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- 1.5% probability of exploitation in 30 days · percentile 75
- Auth required
- No
- Published
- Oct 10, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
What happens
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).
What to do
- Apply the vendor's security update for Mongoose.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | mongoose |
≥ 5.0.0 < 5.7.5 |
5.7.5 |
npm install mongoose@5.7.5 |
| npm | mongoose |
< 4.13.21 |
4.13.21 |
npm install mongoose@4.13.21 |
Per OSV / GitHub Advisories (GHSA-8687-vv9j-hgph). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mongoosejs | mongoose | ≤ 5.7.4 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Third Party Advisory