Improperly Controlled Modification of Dynamically-Determined Object Attributes in express-mock-middleware
Moderate severity
GitHub Reviewed
Published
Dec 9, 2021
to the GitHub Advisory Database
•
Updated Jan 27, 2023
Description
Published by the National Vulnerability Database
Apr 7, 2020
Reviewed
May 25, 2021
Published to the GitHub Advisory Database
Dec 9, 2021
Last updated
Jan 27, 2023
express-mock-middleware through 0.0.6 is vulnerable to Prototype Pollution. Exported functions by the package can be tricked into adding or modifying properties of the
Object.prototype
. Exploitation of this vulnerability requires creation of a new directory where an attack code can be placed which will then be exported byexpress-mock-middleware
. As such, this is considered to be a low risk.References