
Cloud Vulnerability DB
A community-led vulnerabilities database
A prototype pollution vulnerability was discovered in the Mongoose library (CVE-2022-2564) affecting versions prior to 6.4.6. The vulnerability was identified in the GitHub repository automattic/mongoose and specifically affected the schema handling functionality (MITRE).
The vulnerability exists in the schema.js file of Mongoose, specifically related to how the library handles schema creation with dotted properties. The issue allowed for potential prototype pollution through the manipulation of special properties like proto during schema creation. This security flaw was addressed in version 6.4.6 by implementing additional validation checks to disallow setting special properties when creating schemas (GitHub Commit).
The vulnerability could potentially allow an attacker to modify the prototype of objects through schema creation, which could lead to prototype pollution attacks. This type of attack can result in property injection and potentially affect the behavior of the application using the Mongoose library.
The vulnerability was fixed in Mongoose version 6.4.6. Users should upgrade to this version or later to mitigate the risk. The fix includes additional validation checks that prevent setting special properties like proto when creating schemas with dotted properties (GitHub Compare).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."