# CVE-2019-17426: Improper Input Validation in Automattic Mongoose

- Severity: Critical 9.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.50%, higher than 74% of CVEs (2026-12-01)
- Published: 2019-10-10T00:35:17.000Z
- Modified: 2026-06-17T02:23:55.950Z
- Also known as: GHSA-8687-vv9j-hgph
- Weaknesses: CWE-20
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mongoose (npm): from 5.0.0 before 5.7.5; before 4.13.21
- mongoosejs mongoose: up to 5.7.4

## Every score

- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:P/I:P/A:N`

## References

- <https://github.com/Automattic/mongoose/issues/8222> (third-party-advisory, web)
- <https://github.com/Automattic/mongoose/commit/f3eca5b94d822225c04e96cbeed9f095afb3c31c> (patch, 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)

## Sources

- CVE List: [CVE-2019-17426](https://www.cve.org/CVERecord?id=CVE-2019-17426), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-8687-vv9j-hgph](https://github.com/advisories/GHSA-8687-vv9j-hgph), CC-BY-4.0, modified 2023-11-29
- NVD: [CVE-2019-17426](https://nvd.nist.gov/vuln/detail/CVE-2019-17426), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-17426 · Whole record: https://cve.day/CVE-2019-17426.json · Rebuilt by cve.day 2026-11-25T22:57:47.407Z
