CVE-2019-17426 json
Improper Input Validation in Automattic Mongoose
published 7y ago modified 4mo ago also GHSA-8687-vv9j-hgph , EUVD-2019-0693
- cvss
- 9.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 74%
- public exploits
- 0
- none known
Summary
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).
Patch / fix
- npm mongoose 4.13.21, 5.7.5
Is CVE-2019-17426 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
1.50% chance of exploitation in the next 30 days, higher than 74% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | 2.0 | 6.4 | AV:N/AC:L/Au:N/C:P/I:P/A:N |
| GitHub | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | mongoose | >=5.0.0, <5.7.5 <4.13.21 |
5.7.5 4.13.21 |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/Automattic/mongoose/commit/f3eca5b94d822225c04e96cbeed9f095afb3c31c
web, patch
-
github.com
/Automattic/mongoose/commit/f88eb2524b65a68ff893c90a03c04f0913c1913e
web
-
github.com
/Automattic/mongoose/issues/8222
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2019-17426
advisory
-
github.com
/Automattic/mongoose
package
-
github.com
/Automattic/mongoose/commits/4.13.21
web
-
github.com
/Automattic/mongoose/releases/tag/4.13.21
web
Sources
- CVE List CVE-2019-17426
- GitHub Advisory GHSA-8687-vv9j-hgph
- NVD CVE-2019-17426
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.