bodymen@1.0.1 vulnerabilities

Body parser middleware for MongoDB, Express and Nodejs

Direct Vulnerabilities

Known vulnerabilities in the bodymen 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
Prototype Pollution

bodymen is a Body parser middleware for MongoDB, Express and Nodejs.

Affected versions of this package are vulnerable to Prototype Pollution via the handler function which could be tricked into adding or modifying properties of Object.prototype using a __proto__ payload.

Note: This vulnerability derives from an incomplete fix to CVE-2019-10792

How to fix Prototype Pollution?

There is no fixed version for bodymen.

>=0.0.0
  • M
Prototype Pollution

bodymen is a Body parser middleware for MongoDB, Express and Nodejs.

Affected versions of this package are vulnerable to Prototype Pollution. The handler function could be tricked into adding or modifying properties of Object.prototype using a __proto__ payload.

PoC by JHU System Security Lab

var a = require("undefsafe");
var payload = "__proto__.toString";
a({},payload,"JHU");
console.log({}.toString);

How to fix Prototype Pollution?

Upgrade bodymen to version 1.1.1 or higher.

<1.1.1