mongoosify@0.0.2 vulnerabilities

A JavaScript library to convert a JSON Schema into a Mongoose Schema

Direct Vulnerabilities

Known vulnerabilities in the mongoosify package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Arbitrary Code Injection

mongoosify is a prototype-based inheritance library that makes it easy to create objects and inheritance hierarchies without losing the power of javascript's prototype system.

Affected versions of the package are vulnerable to Arbitrary Code Injection due to unsafe use of the eval() function. Node.js provides the eval() function by default, and is used to translate strings into Javascript code. An attacker can craft a malicious payload to inject arbitrary commands.

How to fix Arbitrary Code Injection?

Upgrade mongoosify to version 0.0.4 or higher.

<0.0.4