Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. mongoose
  4. ›
  5. CVE-2022-2564

CVE-2022-2564: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

July 28, 2022 (updated August 16, 2023)

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

References

  • github.com/Automattic/mongoose/pull/12297
  • github.com/automattic/mongoose/commit/a45cfb6b0ce0067ae9794cfa80f7917e1fb3c6f8
  • huntr.dev/bounties/055be524-9296-4b2f-b68d-6d5b810d1ddd
  • nvd.nist.gov/vuln/detail/CVE-2022-2564

Code Behaviors & Features

Detect and mitigate CVE-2022-2564 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.13.15, all versions starting from 6.0.0 before 6.4.6

Fixed versions

  • 5.13.15
  • 6.4.6

Solution

Upgrade to versions 5.13.15, 6.4.6 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/mongoose/CVE-2022-2564.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:03 +0000.