{"id":"CVE-2019-17426","aliases":["CVE-2019-17426","GHSA-8687-vv9j-hgph"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Input Validation in Automattic Mongoose","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).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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).","source":"cvelist"},{"lang":"en","text":"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).","format":"markdown","source":"ghsa"},{"lang":"es","text":"Automattic Mongoose versiones hasta 5.7.4, permite a atacantes omitir el control de acceso (en algunas aplicaciones) porque cualquier objeto de consulta con un atributo _bsontype es ignorado. Por ejemplo, agregar \"_bsontype\":\"a\" a veces puede interferir con un filtro de consulta. NOTA: este CVE trata sobre el fallo de Mongoose para trabajar alrededor de este caso especial de _bsontype que existe en versiones anteriores del analizador bson (también se conoce como el proyecto mongodb/js-bson).","source":"nvd"}],"published":"2019-10-10T00:35:17.000Z","modified":"2026-06-17T02:23:55.950Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:N","score":6.4,"rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.7.5"}],"ecosystem":"npm","package":"mongoose","purl":"pkg:npm/mongoose","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.13.21"}],"ecosystem":"npm","package":"mongoose","purl":"pkg:npm/mongoose","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"5.7.4"}],"vendor":"mongoosejs","product":"mongoose","cpe":"cpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/Automattic/mongoose/issues/8222","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/Automattic/mongoose/commit/f3eca5b94d822225c04e96cbeed9f095afb3c31c","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-17426","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Automattic/mongoose/commit/f88eb2524b65a68ff893c90a03c04f0913c1913e","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Automattic/mongoose","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/Automattic/mongoose/commits/4.13.21","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Automattic/mongoose/releases/tag/4.13.21","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2019-17426","url":"https://www.cve.org/CVERecord?id=CVE-2019-17426","licence":"CVE Terms of Use","modified":"2024-08-05T01:40:15.456Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8687-vv9j-hgph","url":"https://github.com/advisories/GHSA-8687-vv9j-hgph","licence":"CC-BY-4.0","modified":"2023-11-29T22:07:26.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-17426","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-17426","licence":"Public domain","modified":"2026-06-17T02:23:55.950Z"}],"updatedAt":"2026-11-25T22:57:47.407Z","epss":{"score":0.01497,"percentile":0.74958,"date":"2026-12-01T12:00:22.000Z"}}