Mongoose Vulnerable to Prototype Pollution in Schema Object
Critical severity
GitHub Reviewed
Published
Aug 27, 2022
to the GitHub Advisory Database
•
Updated Apr 22, 2024
Description
Published by the National Vulnerability Database
Aug 26, 2022
Published to the GitHub Advisory Database
Aug 27, 2022
Reviewed
Apr 22, 2024
Last updated
Apr 22, 2024
Description
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 theschema
object. This vulnerability allows modification of the Object prototype and could be manipulated into a Denial of Service (DoS) attack.Proof of Concept
Impact
This vulnerability can be manipulated to exploit other types of attacks, such as Denial of service (DoS), Remote Code Execution, or Property Injection.
References