{"schemaVersion":3,"id":"CVE-2022-2564","aliases":["GHSA-f825-f98c-gj3g","BIT-mongoose-2022-2564"],"status":"published","duplicateOf":null,"title":null,"description":"Prototype Pollution in GitHub repository automattic/mongoose prior to 6.4.6.","dates":{"published":"2022-07-28T15:21:20.000Z","modified":"2024-11-20T16:14:46.191Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":7,"severity":"high","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":7,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H","exploitability":5.6,"impact":7.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7,"severity":"high","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.31301,"percentile":0.98268,"severity":"high","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":-1.3749999999999984,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.32676},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.33494,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.33494,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.33494,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.33494,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.31301,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.31301,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.31301,"percentile":0.98268}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.32676,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.33494,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.33494,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.33494,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.33494,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.31301,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.31301,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.31301,"percentile":0.98268}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_AUTOMATTIC_MONGOOSE","name":"Mongoose","source":"github","url":"https://github.com/Automattic/mongoose/blob/51e758541763b6f14569744ced15cc23ab8b50c6/lib/schema.js#L88-L141","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_53FDC28DC43EF396","name":"Exploit Reference (huntr.dev)","source":"reference","url":"https://huntr.dev/bounties/055be524-9296-4b2f-b68d-6d5b810d1ddd","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')","description":"The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.","type":"weakness","status":"Incomplete","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/1321.html"}],"affected":[{"vendor":"automattic","product":"automattic/mongoose","name":"automattic/mongoose","label":"automattic/mongoose","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, < 6.4.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, < 6.4.6","eol":null,"hubHref":"/vendor/automattic/automatticmongoose"},{"vendor":"mongoosejs","product":"mongoose","name":"mongoose","label":"mongoose","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 5.13.15","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0.0, < 6.4.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.13.15 | ≥ 6.0.0, < 6.4.6","eol":null,"hubHref":"/vendor/mongoosejs/mongoose"},{"vendor":"Npm","product":"mongoose","name":"mongoose","label":"mongoose","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/mongoose","purlType":"npm","versions":[{"text":"≥ 6.0.0, < 6.4.6","noFixRecorded":false,"fixedIn":null},{"text":"< 5.13.15","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 6.0.0, < 6.4.6 | < 5.13.15","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/Automattic/mongoose/blob/51e758541763b6f14569744ced15cc23ab8b50c6/lib/schema.js#L88-L141","label":"github.com/Automattic/mongoose/blob/51e758541763b6f14569744ced15cc23ab8b50c6/lib/schema.js","hostname":"github.com","tags":["X Refsource MISC","WEB","Exploit","Third Party Advisory"]},{"url":"https://huntr.dev/bounties/055be524-9296-4b2f-b68d-6d5b810d1ddd","label":"huntr.dev/bounties/055be524-9296-4b2f-b68d-6d5b810d1ddd","hostname":"huntr.dev","tags":["X Refsource CONFIRM","WEB","Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://github.com/automattic/mongoose/commit/a45cfb6b0ce0067ae9794cfa80f7917e1fb3c6f8","label":"github.com/automattic/mongoose/commit/a45cfb6b0ce0067ae9794cfa80f7917e1fb3c6f8","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://github.com/Automattic/mongoose/compare/6.4.5...6.4.6","label":"github.com/Automattic/mongoose/compare/6.4.5...6.4.6","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-2564","label":"nvd.nist.gov/vuln/detail/CVE-2022-2564","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/Automattic/mongoose/commit/99b418941e2fc974199b8e5bd9d382bb50bf680a","label":"github.com/Automattic/mongoose/commit/99b418941e2fc974199b8e5bd9d382bb50bf680a","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md","label":"github.com/Automattic/mongoose/blob/master/CHANGELOG.md","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/automattic/mongoose","label":"github.com/automattic/mongoose","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":["CVE-2022-24304"],"related":[]},"timeline":[{"kind":"published","date":"2022-07-28T15:21:20.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-11-20T16:14:46.191Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T12:02:32.441Z","stale":false,"partial":false}}