Live threats

All CVEs / Mongoosejs

CVE-2019-17426Mongoosejs Mongoose

Critical 9.1 No auth needed

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).

Original NVD text.

What to do

  1. Apply the vendor's security update for Mongoose.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
mongoosejsmongoose≤ 5.7.4

Official sources

References

Links published by the sources. Open them with care.