CVE-2019-17426
CRITICAL 9.1CVSS 3.1Improper Input Validation in Automattic Mongoose
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).
- Published
- 10 Oct 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-8687-vv9j-hgph
- Sources
- NVDJSONOSV GHSA-8687-vv9j-hgphJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.4 | AV:N/AC:L/Au:N/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mongoosejs | mongoosecpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:* |
<= 5.7.4 | |
| OSV | npm | mongoose | >= 5.0.0, < 5.7.5 | 5.7.5 |
| OSV | npm | mongoose | < 4.13.21 | 4.13.21 |
References
- https://github.com/Automattic/mongoose/commit/f3eca5b94d822225c04e96cbeed9f095afb3c31c · Patch, WEB
- https://github.com/Automattic/mongoose/issues/8222 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2019-17426 · ADVISORY
- https://github.com/Automattic/mongoose/commit/f88eb2524b65a68ff893c90a03c04f0913c1913e · WEB
- https://github.com/Automattic/mongoose · PACKAGE
- https://github.com/Automattic/mongoose/commits/4.13.21 · WEB
- https://github.com/Automattic/mongoose/releases/tag/4.13.21 · WEB
History
- 25 Nov 2026 20:30 UTC · NVD: first stored (published 10 Oct 2019)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 22 Oct 2019)