CVE-2022-2564Mongoosejs Mongoose
Critical 9.8 No auth needed
Follow: this CVE · Mongoosejs · Mongoosejs Mongoose We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.7% probability of exploitation in 30 days · percentile 78
- Auth required
- No
- Published
- Jul 28, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1321
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
Prototype Pollution in GitHub repository automattic/mongoose prior to 6.4.6.
What to do
- Apply the vendor's security update for Mongoose.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | mongoose |
≥ 6.0.0 < 6.4.6 |
6.4.6 |
npm install mongoose@6.4.6 |
| npm | mongoose |
< 5.13.15 |
5.13.15 |
npm install mongoose@5.13.15 |
Per OSV / GitHub Advisories (GHSA-f825-f98c-gj3g). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mongoosejs | mongoose | < 5.13.15 |
| mongoosejs | mongoose | ≥ 6.0.0 < 6.4.6 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- huntr.dev Exploit Issue Tracking Patch