CVE-2022-2564
Description
Prototype Pollution in GitHub repository automattic/mongoose prior to 6.4.6.
Severity
HIGH
CVSS v3
7.0
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H · source cna
Exploit chance (EPSS)
31.301%
chance of exploitation in the next 30 days
higher than 98.3% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-1321: Improperly Controlled Modification of Object Prototype Attributes
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2024-11-20 |
Timeline
- 2022-07-28Published by the CNA15:21 UTC
- 2022-07-29GitHub advisory published (GHSA-f825-f98c-gj3g)1 day after publication
- 2024-11-20CISA SSVC decision recorded846 days after publication
Exploit and advisory records
GitHub advisory GHSA-f825-f98c-gj3g, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm mongoose | before 5.13.15 | 5.13.15 |
| npm mongoose | from 6.0.0 before 6.4.6 | 6.4.6 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| mongoosejs mongoose | before 5.13.15fixed in 5.13.15from 6.0.0 before 6.4.6fixed in 6.4.6 | 5.13.156.4.6 |
References
- https://github.com/Automattic/mongoose/compare/6.4.5...6.4.6
- https://github.com/automattic/mongoose/commit/a45cfb6b0ce0067ae9794cfa80f7917e1fb3c6f8
- https://huntr.dev/bounties/055be524-9296-4b2f-b68d-6d5b810d1ddd
- https://github.com/Automattic/mongoose/blob/51e758541763b6f14569744ced15cc23ab8b50c6/lib/schema.js#L88-L141
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2022-2564'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2022-2564'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2022-2564'curl 'https://api.contrastcyber.com/cve_products/CVE-2022-2564'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).