CWE
1321
Advisory Published
Advisory Published
Updated

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

First published: Thu Jul 28 2022(Updated: )

Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Affected versions of this package are vulnerable to Prototype Pollution. The `Schema.path()` function is vulnerable to prototype pollution when setting the schema object. This vulnerability allows modification of the Object prototype and could be manipulated into a Denial of Service (DoS) attack.

Credit: security@huntr.dev security@huntr.dev security@huntr.dev

Affected SoftwareAffected VersionHow to fix
npm/mongoose<5.13.15
5.13.15
npm/mongoose>=6.0.0<6.4.6
6.4.6
Mongoose<6.4.6
Mongoose<5.13.15
Mongoose>=6.0.0<6.4.6

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2022-2564?

    CVE-2022-2564 is classified as a moderate severity vulnerability affecting specific versions of Mongoose.

  • How do I fix CVE-2022-2564?

    To fix CVE-2022-2564, upgrade to Mongoose version 6.4.6 or later, or downgrade to any version below 5.13.15.

  • What versions of Mongoose are affected by CVE-2022-2564?

    Versions of Mongoose prior to 6.4.6 and between 5.13.15 and 6.0.0 are affected by CVE-2022-2564.

  • What is the specific vulnerability in CVE-2022-2564?

    CVE-2022-2564 is related to Prototype Pollution in the Schema.path() function of Mongoose.

  • Is CVE-2022-2564 a remote exploitation vulnerability?

    CVE-2022-2564 can potentially be exploited remotely, as it affects a widely used database modeling library.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203