{"id":"CVE-2022-2564","aliases":["CVE-2022-2564","GHSA-f825-f98c-gj3g","BIT-MONGOOSE-2022-2564"],"related":[],"kind":"vulnerability","state":"published","title":"Prototype Pollution in automattic/mongoose","summary":"Prototype Pollution in GitHub repository automattic/mongoose prior to 6.4.6.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Prototype Pollution in GitHub repository automattic/mongoose prior to 6.4.6.","source":"cvelist"},{"lang":"en","text":"Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Affected versions of this package are vulnerable to Prototype Pollution. The `Schema.path()` function is vulnerable to prototype pollution when setting the schema object. This vulnerability allows modification of the Object prototype and could be manipulated into a Denial of Service (DoS) attack.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una Contaminación de Prototipo en el repositorio de GitHub automattic/mongoose versiones anteriores a 6.4.6","source":"nvd"}],"published":"2022-07-28T15:21:20.000Z","modified":"2026-09-08T08:48:14.492Z","severity":{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H","score":7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H","score":7,"rating":"HIGH"},{"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:H","score":9.8,"rating":"CRITICAL"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"6.4.6","status":"affected"}],"vendor":"automattic","product":"automattic/mongoose","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"6.0.0","status":"affected","fixed":"6.4.6"}],"ecosystem":"npm","package":"mongoose","purl":"pkg:npm/mongoose","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.13.15"}],"ecosystem":"npm","package":"mongoose","purl":"pkg:npm/mongoose","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.13.15"},{"status":"affected","introduced":"6.0.0","fixed":"6.4.6"}],"vendor":"mongoosejs","product":"mongoose","cpe":"cpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.13.15"},{"type":"semver","introduced":"6.0.0","status":"affected","fixed":"6.4.6"}],"ecosystem":"Bitnami","package":"mongoose","purl":"pkg:bitnami/mongoose","source":"bitnami"}],"references":[{"url":"https://github.com/Automattic/mongoose/blob/51e758541763b6f14569744ced15cc23ab8b50c6/lib/schema.js#L88-L141","tags":["advisory","exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://huntr.dev/bounties/055be524-9296-4b2f-b68d-6d5b810d1ddd","tags":["advisory","exploit","issue-tracking","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/automattic/mongoose/commit/a45cfb6b0ce0067ae9794cfa80f7917e1fb3c6f8","tags":["advisory","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/Automattic/mongoose/compare/6.4.5...6.4.6","tags":["advisory","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2564","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/Automattic/mongoose/commit/99b418941e2fc974199b8e5bd9d382bb50bf680a","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/automattic/mongoose","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"@huntrdev","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-11-20T16:14:31.845Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-2564","url":"https://www.cve.org/CVERecord?id=CVE-2022-2564","licence":"CVE Terms of Use","modified":"2024-11-20T16:14:46.191Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f825-f98c-gj3g","url":"https://github.com/advisories/GHSA-f825-f98c-gj3g","licence":"CC-BY-4.0","modified":"2023-12-06T01:02:07.656Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-2564","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2564","licence":"Public domain","modified":"2026-06-17T04:42:07.560Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MONGOOSE-2022-2564","url":"https://osv.dev/vulnerability/BIT-MONGOOSE-2022-2564","licence":"Apache-2.0","modified":"2026-09-08T08:48:14.492Z"}],"updatedAt":"2026-11-25T22:58:13.294Z","epss":{"score":0.31301,"percentile":0.98308,"date":"2026-12-01T12:00:22.000Z"}}