{"id":"CVE-2022-2564","aliases":["BIT-mongoose-2022-2564","GHSA-f825-f98c-gj3g"],"url":"https://o3.security/vulnerability/CVE-2022-2564","summary":"Prototype Pollution in automattic/mongoose","details":"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.","published":"2022-07-28T15:21:20Z","modified":"2026-08-12T03:51:11.363616424Z","cvss":{"score":7,"severity":"HIGH","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H"},"epss":{"score":0.32676,"percentile":0.98208,"asOf":"2026-08-24"},"cisaKev":null,"exploitsKnown":2,"affectedPackages":[{"ecosystem":"npm","name":"mongoose","fixedVersion":"6.4.6"},{"ecosystem":"npm","name":"mongoose","fixedVersion":"5.13.15"}],"fix":{"url":"https://github.com/automattic/mongoose/commit/a45cfb6b0ce0067ae9794cfa80f7917e1fb3c6f8","label":"automattic/mongoose@a45cfb6"},"references":[{"type":"WEB","url":"https://github.com/Automattic/mongoose/blob/51e758541763b6f14569744ced15cc23ab8b50c6/lib/schema.js#L88-L141"},{"type":"WEB","url":"https://github.com/Automattic/mongoose/compare/6.4.5...6.4.6"},{"type":"WEB","url":"https://huntr.dev/bounties/055be524-9296-4b2f-b68d-6d5b810d1ddd"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2564.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2564"},{"type":"FIX","url":"https://github.com/automattic/mongoose/commit/a45cfb6b0ce0067ae9794cfa80f7917e1fb3c6f8"},{"type":"WEB","url":"https://github.com/Automattic/mongoose/commit/99b418941e2fc974199b8e5bd9d382bb50bf680a"},{"type":"WEB","url":"https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md"},{"type":"WEB","url":"https://github.com/automattic/mongoose"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:11.363616424Z"}}